From 7ce022b28e43af6fd6727490f4ed53b478f2530f Mon Sep 17 00:00:00 2001 From: vignesh mohankumar Date: Tue, 15 Nov 2022 16:18:05 -0500 Subject: [PATCH] refactor: rename ShoppingBag to Bag (#5232) --- src/components/NavBar/{ShoppingBag.tsx => Bag.tsx} | 2 +- src/components/NavBar/index.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename src/components/NavBar/{ShoppingBag.tsx => Bag.tsx} (98%) diff --git a/src/components/NavBar/ShoppingBag.tsx b/src/components/NavBar/Bag.tsx similarity index 98% rename from src/components/NavBar/ShoppingBag.tsx rename to src/components/NavBar/Bag.tsx index cc2f5e8237..6aa6013041 100644 --- a/src/components/NavBar/ShoppingBag.tsx +++ b/src/components/NavBar/Bag.tsx @@ -20,7 +20,7 @@ const CounterDot = styled.div` top: 4px; ` -export const ShoppingBag = () => { +export const Bag = () => { const itemsInBag = useBag((state) => state.itemsInBag) const [bagQuantity, setBagQuantity] = useState(0) diff --git a/src/components/NavBar/index.tsx b/src/components/NavBar/index.tsx index 25defd6383..9555673f49 100644 --- a/src/components/NavBar/index.tsx +++ b/src/components/NavBar/index.tsx @@ -11,10 +11,10 @@ import { useIsMobile } from 'nft/hooks' import { ReactNode, useMemo } from 'react' import { NavLink, NavLinkProps, useLocation } from 'react-router-dom' +import { Bag } from './Bag' import { ChainSelector } from './ChainSelector' import { MenuDropdown } from './MenuDropdown' import { SearchBar } from './SearchBar' -import { ShoppingBag } from './ShoppingBag' import * as styles from './style.css' interface MenuItemProps { @@ -124,7 +124,7 @@ const Navbar = () => { - {isNftPage && } + {isNftPage && } {!isNftPage && (