diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2024-06-06 03:23:15 +0000 |
|---|---|---|
| committer | trisusilo <tri.susilo@altama.co.id> | 2024-06-06 03:23:15 +0000 |
| commit | 15f1163e5e865b322e20712d5916a0c10da25b33 (patch) | |
| tree | b11576f68faa6a626bbc807432fb4c6a536a7f0e | |
| parent | 44a4a00f95b7992281cebdd15f7b1eaf24c52fd6 (diff) | |
| parent | 6ac1792ee37e5a5a9438f61e708966c944b61914 (diff) | |
Merged in feature/SNI-TKDN (pull request #139)
<iman> add feature SNI-TKDN
Approved-by: trisusilo
| -rw-r--r-- | src-migrate/types/product.ts | 4 | ||||
| -rw-r--r-- | src/lib/product/components/ProductCard.jsx | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src-migrate/types/product.ts b/src-migrate/types/product.ts index 428b6e45..681cdc8e 100644 --- a/src-migrate/types/product.ts +++ b/src-migrate/types/product.ts @@ -11,8 +11,8 @@ export interface IProduct { stock_total: number; variant_total: number; description: string; - is_sni: boolean; - is_tkdn: boolean; + isSni: boolean; + isTkdn: boolean; categories: { id: string; name: string; diff --git a/src/lib/product/components/ProductCard.jsx b/src/lib/product/components/ProductCard.jsx index 357f3fd9..98732407 100644 --- a/src/lib/product/components/ProductCard.jsx +++ b/src/lib/product/components/ProductCard.jsx @@ -50,7 +50,7 @@ const ProductCard = ({ product, simpleTitle, variant = 'vertical' }) => { /> <div className="absolute top-0 right-0 flex mt-3"> <div className="gambarB "> - {product.isSni && ( + {product?.isSni && ( <ImageNext src="/images/sni-logo.png" alt="SNI Logo" @@ -61,7 +61,7 @@ const ProductCard = ({ product, simpleTitle, variant = 'vertical' }) => { )} </div> <div className="gambarC "> - {product.isTkdn && ( + {product?.isTkdn && ( <ImageNext src="/images/TKDN.png" alt="TKDN" @@ -208,7 +208,7 @@ const ProductCard = ({ product, simpleTitle, variant = 'vertical' }) => { /> <div className="absolute top-0 right-0 flex mt-3"> <div className="gambarB "> - {product.isSni && ( + {product?.isSni && ( <ImageNext src="/images/sni-logo.png" alt="SNI Logo" @@ -219,7 +219,7 @@ const ProductCard = ({ product, simpleTitle, variant = 'vertical' }) => { )} </div> <div className="gambarC "> - {product.isTkdn && ( + {product?.isTkdn && ( <ImageNext src="/images/TKDN.png" alt="TKDN" |
