From 8690ffb360e8a774560fcafaaeefe37fad1f6948 Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Sat, 19 Nov 2022 11:21:40 +0700 Subject: Fix style --- src/components/ProductCard.js | 2 +- src/pages/shop/brands.js | 4 ++-- src/pages/shop/product/[slug].js | 2 +- src/styles/globals.css | 3 ++- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/components/ProductCard.js b/src/components/ProductCard.js index af96de28..3b0ef162 100644 --- a/src/components/ProductCard.js +++ b/src/components/ProductCard.js @@ -30,7 +30,7 @@ export default function ProductCard({ data }) {
{product.lowest_price.discount_percentage > 0 ? (
- {product.lowest_price.discount_percentage}% + {product.lowest_price.discount_percentage}%

{currencyFormat(product.lowest_price.price)}

) : ''} diff --git a/src/pages/shop/brands.js b/src/pages/shop/brands.js index f39839af..07ad1f43 100644 --- a/src/pages/shop/brands.js +++ b/src/pages/shop/brands.js @@ -31,7 +31,7 @@ export default function Brands({ initialManufactures }) { dataLength={manufactures.length} next={getMoreManufactures} hasMore={hasMoreManufacture} - className="grid grid-cols-3 gap-4 mt-4 !overflow-x-hidden" + className="grid grid-cols-3 gap-4 mt-4 !overflow-x-hidden bg-white" loader={
@@ -40,7 +40,7 @@ export default function Brands({ initialManufactures }) { > {manufactures?.map((manufacture, index) => ( manufacture.name ? ( - + {manufacture.logo ? ( ) : manufacture.name} diff --git a/src/pages/shop/product/[slug].js b/src/pages/shop/product/[slug].js index bcbebbdf..a42e6cb9 100644 --- a/src/pages/shop/product/[slug].js +++ b/src/pages/shop/product/[slug].js @@ -82,7 +82,7 @@ export default function ProductDetail({product}) {
- +
{product.manufacture.name ?? '-'} diff --git a/src/styles/globals.css b/src/styles/globals.css index 5d741ab4..8981f0c7 100644 --- a/src/styles/globals.css +++ b/src/styles/globals.css @@ -9,7 +9,7 @@ html, body { w-screen text-base text-gray-900 - bg-gray-100 + bg-gray-50 ; } @@ -148,6 +148,7 @@ html, body { p-2 pb-3 flex-1 + bg-white ; } -- cgit v1.2.3