Commit 7ce022b2 authored by vignesh mohankumar's avatar vignesh mohankumar Committed by GitHub

refactor: rename ShoppingBag to Bag (#5232)

parent dd8233f8
...@@ -20,7 +20,7 @@ const CounterDot = styled.div` ...@@ -20,7 +20,7 @@ const CounterDot = styled.div`
top: 4px; top: 4px;
` `
export const ShoppingBag = () => { export const Bag = () => {
const itemsInBag = useBag((state) => state.itemsInBag) const itemsInBag = useBag((state) => state.itemsInBag)
const [bagQuantity, setBagQuantity] = useState(0) const [bagQuantity, setBagQuantity] = useState(0)
......
...@@ -11,10 +11,10 @@ import { useIsMobile } from 'nft/hooks' ...@@ -11,10 +11,10 @@ import { useIsMobile } from 'nft/hooks'
import { ReactNode, useMemo } from 'react' import { ReactNode, useMemo } from 'react'
import { NavLink, NavLinkProps, useLocation } from 'react-router-dom' import { NavLink, NavLinkProps, useLocation } from 'react-router-dom'
import { Bag } from './Bag'
import { ChainSelector } from './ChainSelector' import { ChainSelector } from './ChainSelector'
import { MenuDropdown } from './MenuDropdown' import { MenuDropdown } from './MenuDropdown'
import { SearchBar } from './SearchBar' import { SearchBar } from './SearchBar'
import { ShoppingBag } from './ShoppingBag'
import * as styles from './style.css' import * as styles from './style.css'
interface MenuItemProps { interface MenuItemProps {
...@@ -124,7 +124,7 @@ const Navbar = () => { ...@@ -124,7 +124,7 @@ const Navbar = () => {
<Box display={{ sm: 'none', lg: 'flex' }}> <Box display={{ sm: 'none', lg: 'flex' }}>
<MenuDropdown /> <MenuDropdown />
</Box> </Box>
{isNftPage && <ShoppingBag />} {isNftPage && <Bag />}
{!isNftPage && ( {!isNftPage && (
<Box display={{ sm: 'none', lg: 'flex' }}> <Box display={{ sm: 'none', lg: 'flex' }}>
<ChainSelector /> <ChainSelector />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment