tee3apps-cms-sdk-react 0.0.3 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tee3apps-cms-sdk-react",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "Uses JSON to dynamically generate and render UI pages in a website",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -316,7 +316,7 @@ const GroupProductComponent: React.FC<GroupProductComponentMainProps> = ({
316
316
  } else {
317
317
  // Default style (NONE)
318
318
  return (
319
- <a href={`/${product._id}`} target={'_blank'} rel="noopener noreferrer" style={{textDecoration:"none"}}>
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?._id; // Using code instead of slug
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?._id; // Using code instead of slug since slug doesn't exist in your 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);