From e6c13e8ef5b142f74d01f573bf7fcdc0a6ad2626 Mon Sep 17 00:00:00 2001 From: Eknoor Singh Date: Thu, 9 Jan 2025 11:01:46 +0530 Subject: [PATCH] Latest Changes as per feedback --- public/vite.svg | 1 - src/App.jsx | 12 +- src/assets/SvgIcons/svgIcons.jsx | 81 ++++++++++++ src/assets/react.svg | 1 - src/components/Navbar/index.jsx | 4 +- src/components/ProductCards/index.jsx | 24 ++-- src/components/api/api.jsx | 13 +- src/components/cartContext/index.jsx | 10 +- src/components/cartProducts/index.jsx | 169 ++++++++++++++++---------- src/components/dropdown/index.jsx | 1 - src/index.css | 13 +- 11 files changed, 241 insertions(+), 88 deletions(-) delete mode 100644 public/vite.svg create mode 100644 src/assets/SvgIcons/svgIcons.jsx delete mode 100644 src/assets/react.svg diff --git a/public/vite.svg b/public/vite.svg deleted file mode 100644 index e7b8dfb..0000000 --- a/public/vite.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/App.jsx b/src/App.jsx index cf9b5a8..876cbe7 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -38,18 +38,18 @@ const App = () => { ]; return ( -
+
-
+
{ value={filters?.price} onChange={handleFilterChange} options={priceOptions} - className="border border-gray-300 bg-black text-white rounded p-2" + className="bg-slate-800 text-white rounded p-2 ml-2 cursor-pointer" /> { value={filters?.rating} onChange={handleFilterChange} options={ratingOptions} - className="border border-gray-300 bg-black text-white rounded p-2" + className="bg-slate-800 text-white rounded p-2 cursor-pointer" />
-
+
{filteredProducts?.map((product) => ( ))} diff --git a/src/assets/SvgIcons/svgIcons.jsx b/src/assets/SvgIcons/svgIcons.jsx new file mode 100644 index 0000000..e4bb92a --- /dev/null +++ b/src/assets/SvgIcons/svgIcons.jsx @@ -0,0 +1,81 @@ +/* eslint-disable react/no-unknown-property */ +const crossIcon = ( + + + + + + + + + + + + + + + +); + +const crossSecond = ( + + + + +); + +const starIcon = ( + + + +); + +export { crossIcon, crossSecond, starIcon }; diff --git a/src/assets/react.svg b/src/assets/react.svg deleted file mode 100644 index 6c87de9..0000000 --- a/src/assets/react.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/components/Navbar/index.jsx b/src/components/Navbar/index.jsx index 2d30461..d136b1f 100644 --- a/src/components/Navbar/index.jsx +++ b/src/components/Navbar/index.jsx @@ -13,7 +13,9 @@ const Navbar = () => { return (