From 5d21d8395922697ed91e500e37cdc25d192cde34 Mon Sep 17 00:00:00 2001 From: MuhammadShakkeer2030 Date: Mon, 19 Feb 2024 17:07:47 +0530 Subject: [PATCH] style:updated darkmode in productsGroup & products displaying --- src/assets/globalUtlities.ts | 2 +- src/components/ProductCard.tsx | 2 +- src/components/ProductFilterSiderbar.tsx | 3 ++- src/components/ProductGroupsTab.tsx | 2 +- src/pages/ProductsGroup.tsx | 9 ++++++--- 5 files changed, 11 insertions(+), 7 deletions(-) diff --git a/src/assets/globalUtlities.ts b/src/assets/globalUtlities.ts index 568707c..f583ccf 100644 --- a/src/assets/globalUtlities.ts +++ b/src/assets/globalUtlities.ts @@ -70,7 +70,7 @@ export const rowProductsData = [ { id: 1, title: "title", - img: "/imgs/demo_row_products/1.png", + img: "./imgs/demo_row_products/1.png", price: 20, quantity: 0, offerAvailable: true, diff --git a/src/components/ProductCard.tsx b/src/components/ProductCard.tsx index 8dccc1c..e4b4a0a 100644 --- a/src/components/ProductCard.tsx +++ b/src/components/ProductCard.tsx @@ -7,7 +7,7 @@ const ProductCard = ({ }: { product: ProductProps | undefined; index: number; - refreshSite:boolean + refreshSite: boolean }) => { return (
diff --git a/src/components/ProductFilterSiderbar.tsx b/src/components/ProductFilterSiderbar.tsx index 6d50b7a..59247a5 100644 --- a/src/components/ProductFilterSiderbar.tsx +++ b/src/components/ProductFilterSiderbar.tsx @@ -53,7 +53,7 @@ export const ProductFilterSiderbar = () => { { value: 5, label: '5 stars' }, ]; return ( -
+
{/* this style will be displayed untill screen size is 1270px */}