From 3d311fab77cf22bc80d9e62a5392207fa26d7cc6 Mon Sep 17 00:00:00 2001 From: Reza_ashrafi Date: Wed, 13 Jul 2022 17:06:55 +0430 Subject: [PATCH] delete 8 files and update 2 files --- .../assets/icons/search-primary.svg | 4 ++-- .../assets/images}/Bazar.svg | 0 .../assets/images}/IOS.svg | 0 .../assets/images}/enamad-pic.svg | 0 .../assets/images}/samandehi-pic.svg | 0 src/components/MainFooter/index.js | 23 +++++++++++-------- src/components/Navbar/index.js | 17 +++++++------- .../Navbar/light-gray-search-box.svg | 7 ------ src/components/Navbar/white-cart-icon.svg | 7 ------ .../Navbar/white-hamburger-menu-icon.svg | 9 -------- 10 files changed, 23 insertions(+), 44 deletions(-) rename src/components/Navbar/dark-crimson-search-box.svg => public/assets/icons/search-primary.svg (63%) rename {src/components/MainFooter => public/assets/images}/Bazar.svg (100%) rename {src/components/MainFooter => public/assets/images}/IOS.svg (100%) rename {src/components/MainFooter => public/assets/images}/enamad-pic.svg (100%) rename {src/components/MainFooter => public/assets/images}/samandehi-pic.svg (100%) delete mode 100644 src/components/Navbar/light-gray-search-box.svg delete mode 100644 src/components/Navbar/white-cart-icon.svg delete mode 100644 src/components/Navbar/white-hamburger-menu-icon.svg diff --git a/src/components/Navbar/dark-crimson-search-box.svg b/public/assets/icons/search-primary.svg similarity index 63% rename from src/components/Navbar/dark-crimson-search-box.svg rename to public/assets/icons/search-primary.svg index ab021fe..c34c47a 100644 --- a/src/components/Navbar/dark-crimson-search-box.svg +++ b/public/assets/icons/search-primary.svg @@ -1,5 +1,5 @@ - - + + diff --git a/src/components/MainFooter/Bazar.svg b/public/assets/images/Bazar.svg similarity index 100% rename from src/components/MainFooter/Bazar.svg rename to public/assets/images/Bazar.svg diff --git a/src/components/MainFooter/IOS.svg b/public/assets/images/IOS.svg similarity index 100% rename from src/components/MainFooter/IOS.svg rename to public/assets/images/IOS.svg diff --git a/src/components/MainFooter/enamad-pic.svg b/public/assets/images/enamad-pic.svg similarity index 100% rename from src/components/MainFooter/enamad-pic.svg rename to public/assets/images/enamad-pic.svg diff --git a/src/components/MainFooter/samandehi-pic.svg b/public/assets/images/samandehi-pic.svg similarity index 100% rename from src/components/MainFooter/samandehi-pic.svg rename to public/assets/images/samandehi-pic.svg diff --git a/src/components/MainFooter/index.js b/src/components/MainFooter/index.js index a4a4849..07f47b6 100644 --- a/src/components/MainFooter/index.js +++ b/src/components/MainFooter/index.js @@ -1,12 +1,6 @@ import React from "react"; import { Link } from "react-router-dom"; -import enamadlogo from "./enamad-pic.svg"; -import callIcon from "../../assets/icons/vuesax-linear-call-calling.svg"; -import samandehi from "./samandehi-pic.svg"; -// import iosIcon from "./IOS.svg"; -// import bazarIcon from "./Bazar.svg"; - const FooterDesign1 = ({ color, bg, items, hasHeader }) => { const enamad = ''; @@ -17,7 +11,10 @@ const FooterDesign1 = ({ color, bg, items, hasHeader }) => {
- +

7 @@ -34,7 +31,9 @@ const FooterDesign1 = ({ color, bg, items, hasHeader }) => { 654412 021 - Info@danovin.ir + + Info@danovin.ir + {/* Info@danovin.ir */}

@@ -84,10 +83,14 @@ const FooterDesign1 = ({ color, bg, items, hasHeader }) => { className="w-28 p-2 rounded-md bg-gray-300 mx-6" >
) : ( - + )} diff --git a/src/components/Navbar/index.js b/src/components/Navbar/index.js index b775fb6..92fd44b 100644 --- a/src/components/Navbar/index.js +++ b/src/components/Navbar/index.js @@ -11,8 +11,6 @@ import SearchResult from "./SearchResult"; import Loading from "../Loading"; //assets -import cartIcon from "./cart-blue.svg"; -import searchIcon from "./dark-crimson-search-box.svg"; import logoIcon from "../../assets/icons/logo.svg"; import qrIcon from "../../assets/icons/qr-white.svg"; import qrBlueIcon from "../../assets/icons/qr-blue.svg"; @@ -270,25 +268,26 @@ function Navbar({ setOverLayer(true)} /> - {user && ( + {user ? (
- + {cartProductsLength} - {/* */} - - {/* */}
- )} + ) : null} {!user ? ( - - - - - - diff --git a/src/components/Navbar/white-cart-icon.svg b/src/components/Navbar/white-cart-icon.svg deleted file mode 100644 index 4e94683..0000000 --- a/src/components/Navbar/white-cart-icon.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/src/components/Navbar/white-hamburger-menu-icon.svg b/src/components/Navbar/white-hamburger-menu-icon.svg deleted file mode 100644 index 9206922..0000000 --- a/src/components/Navbar/white-hamburger-menu-icon.svg +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - -