tee3apps-cms-sdk-react 0.0.2 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/PageComponents/Visual-Components/GroupProductComponent.tsx +1 -1
- package/src/PageComponents/Visual-Components/Styles/ProductListViewOne.tsx +1 -1
- package/src/PageComponents/Visual-Components/Styles/ProductListViewTwo.tsx +1 -1
package/package.json
CHANGED
|
@@ -316,7 +316,7 @@ const GroupProductComponent: React.FC<GroupProductComponentMainProps> = ({
|
|
|
316
316
|
} else {
|
|
317
317
|
// Default style (NONE)
|
|
318
318
|
return (
|
|
319
|
-
<a href={`/${product.
|
|
319
|
+
<a href={`/${product.code}`} target={'_blank'} rel="noopener noreferrer" style={{textDecoration:"none"}}>
|
|
320
320
|
<div
|
|
321
321
|
key={product._id}
|
|
322
322
|
className="productImageSlide"
|
|
@@ -21,7 +21,7 @@ const ProductListViewOne = (props: any) => {
|
|
|
21
21
|
}, []);
|
|
22
22
|
|
|
23
23
|
const data = props.props || props;
|
|
24
|
-
const slug = data?.
|
|
24
|
+
const slug = data?.code; // Using code instead of slug
|
|
25
25
|
|
|
26
26
|
// Updated price extraction to match your JSON structure
|
|
27
27
|
const sellingPrice = Number(data?.price?.SP?.$numberDecimal || 0);
|
|
@@ -22,7 +22,7 @@ const ProductListViewTwo = (props: any) => {
|
|
|
22
22
|
}, []);
|
|
23
23
|
|
|
24
24
|
const data = props.props || props;
|
|
25
|
-
const slug = data?.
|
|
25
|
+
const slug = data?.code; // Using code instead of slug since slug doesn't exist in your data
|
|
26
26
|
|
|
27
27
|
// Updated price extraction to match your JSON structure
|
|
28
28
|
const sellingPrice = Number(data?.price?.SP?.$numberDecimal || 0);
|