From 224b954407640b5579bd9095bdb3c0644e1ec294 Mon Sep 17 00:00:00 2001 From: mahdi Date: Wed, 22 Dec 2021 15:36:35 +0330 Subject: [PATCH] counter component added --- src/App.js | 6 +- src/assets/icons/black-dislike-icon.svg | 7 +++ src/assets/icons/black-like-icon.svg | 7 +++ src/assets/icons/decrement-counter-icon.svg | 3 + src/assets/icons/increment-counter-icon.svg | 3 + src/components/buttonDesign/ButtonDesign.js | 2 +- src/components/buttonDesign/ButtonDesign.scss | 3 - src/components/counterDesign/CounterDesign.js | 61 +++++++++++++++++++ .../counterDesign/CounterDesign.scss | 0 src/components/productTags/ProductTags.js | 2 +- src/components/productTags/ProductTags.scss | 3 - tailwind.config.js | 1 + 12 files changed, 88 insertions(+), 10 deletions(-) create mode 100644 src/assets/icons/black-dislike-icon.svg create mode 100644 src/assets/icons/black-like-icon.svg create mode 100644 src/assets/icons/decrement-counter-icon.svg create mode 100644 src/assets/icons/increment-counter-icon.svg create mode 100644 src/components/counterDesign/CounterDesign.js create mode 100644 src/components/counterDesign/CounterDesign.scss diff --git a/src/App.js b/src/App.js index 5e53204..89550ac 100644 --- a/src/App.js +++ b/src/App.js @@ -2,13 +2,15 @@ import "./App.scss"; import ButtonDesign from "./components/buttonDesign/ButtonDesign"; import ProductDesign from "./components/productDesign/ProductDesign"; import ProductTags from "./components/productTags/ProductTags"; +import CounterDesign from "./components/counterDesign/CounterDesign"; function App() { return (
{/* */} - - + {/* */} + {/* */} +
); } diff --git a/src/assets/icons/black-dislike-icon.svg b/src/assets/icons/black-dislike-icon.svg new file mode 100644 index 0000000..a9e211e --- /dev/null +++ b/src/assets/icons/black-dislike-icon.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/assets/icons/black-like-icon.svg b/src/assets/icons/black-like-icon.svg new file mode 100644 index 0000000..9d7e89c --- /dev/null +++ b/src/assets/icons/black-like-icon.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/assets/icons/decrement-counter-icon.svg b/src/assets/icons/decrement-counter-icon.svg new file mode 100644 index 0000000..c96b1dc --- /dev/null +++ b/src/assets/icons/decrement-counter-icon.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/assets/icons/increment-counter-icon.svg b/src/assets/icons/increment-counter-icon.svg new file mode 100644 index 0000000..0792676 --- /dev/null +++ b/src/assets/icons/increment-counter-icon.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/components/buttonDesign/ButtonDesign.js b/src/components/buttonDesign/ButtonDesign.js index a49d62e..ea53302 100644 --- a/src/components/buttonDesign/ButtonDesign.js +++ b/src/components/buttonDesign/ButtonDesign.js @@ -56,7 +56,7 @@ const ButtonDesign = ({