tee3apps-cms-sdk-react 0.0.3 → 0.0.5
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/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- 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/src/PageComponents/Visual-Components/TabComponent.tsx +4 -4
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);
|
|
@@ -79,7 +79,7 @@ interface FontStyle {
|
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
interface TitleStyle {
|
|
82
|
-
titleText:
|
|
82
|
+
titleText:any;
|
|
83
83
|
fontSize: number;
|
|
84
84
|
fontStyle: FontStyle;
|
|
85
85
|
fontColor: string;
|
|
@@ -209,7 +209,7 @@ const TabComponent: React.FC<TabComponentMainProps> = ({ props, deviceMode = 'we
|
|
|
209
209
|
const offer = calculateOffer(mrp, sp);
|
|
210
210
|
|
|
211
211
|
const cardMode = layout === '1x1' ? 'carousel-mode' : layout === '2x1' ? 'layout-2x1' : 'grid-mode';
|
|
212
|
-
const productSlug = product.
|
|
212
|
+
const productSlug = product.code;
|
|
213
213
|
const productLink = `/${productSlug}`;
|
|
214
214
|
|
|
215
215
|
const cardContent = (
|
|
@@ -228,7 +228,7 @@ const TabComponent: React.FC<TabComponentMainProps> = ({ props, deviceMode = 'we
|
|
|
228
228
|
<div className="product-header">
|
|
229
229
|
<div className="product-brand">{product.brand?.name?.all || product.brand?.name}</div>
|
|
230
230
|
<div className="product-name">{product.name?.all || product.name}</div>
|
|
231
|
-
<div className="product-code">Code: {product.
|
|
231
|
+
<div className="product-code">Code: {product.sku}</div>
|
|
232
232
|
</div>
|
|
233
233
|
|
|
234
234
|
{/* Rating - Show first for grid mode */}
|
|
@@ -1110,7 +1110,7 @@ const TabComponent: React.FC<TabComponentMainProps> = ({ props, deviceMode = 'we
|
|
|
1110
1110
|
{/* Title */}
|
|
1111
1111
|
{props.showTitle && (
|
|
1112
1112
|
<h1 style={getTitleStyle()}>
|
|
1113
|
-
{props?.title?.titleText
|
|
1113
|
+
{props?.title?.titleText}
|
|
1114
1114
|
</h1>
|
|
1115
1115
|
)}
|
|
1116
1116
|
|