From 83354e3e9af77447a399b1f47fa22c7fccbbbe72 Mon Sep 17 00:00:00 2001 From: IT Fixcomart Date: Mon, 31 Oct 2022 17:21:10 +0700 Subject: Create noimage --- next.config.js | 2 -- public/images/noimage.jpeg | Bin 0 -> 20759 bytes src/components/productCard.js | 6 +++--- 3 files changed, 3 insertions(+), 5 deletions(-) create mode 100644 public/images/noimage.jpeg diff --git a/next.config.js b/next.config.js index 8a019dcc..37bb288a 100644 --- a/next.config.js +++ b/next.config.js @@ -14,8 +14,6 @@ const nextConfig = { env: { DB_HOST: 'https://erp.indoteknik.com', DB_NAME: 'erp_indoteknik', - // DB_HOST: 'http://192.168.27.253:8069', - // DB_NAME: 'indoteknik_odoo', DB_USER: 'it@fixcomart.co.id', DB_PASS: 'Fixcomart378', }, diff --git a/public/images/noimage.jpeg b/public/images/noimage.jpeg new file mode 100644 index 00000000..41a39d8f Binary files /dev/null and b/public/images/noimage.jpeg differ diff --git a/src/components/productCard.js b/src/components/productCard.js index dc292316..6e703670 100644 --- a/src/components/productCard.js +++ b/src/components/productCard.js @@ -7,7 +7,7 @@ export default function productCard({ data }) { return (
- {product.name} + {product.name}
@@ -16,9 +16,9 @@ export default function productCard({ data }) { ) : ( - )} - + {product.name} - +
{product.lowest_price.discount_percentage > 0 ? ( -- cgit v1.2.3