Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
interface
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LuckySwap
interface
Commits
7ce022b2
Unverified
Commit
7ce022b2
authored
Nov 15, 2022
by
vignesh mohankumar
Committed by
GitHub
Nov 15, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor: rename ShoppingBag to Bag (#5232)
parent
dd8233f8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
Bag.tsx
src/components/NavBar/Bag.tsx
+1
-1
index.tsx
src/components/NavBar/index.tsx
+2
-2
No files found.
src/components/NavBar/
Shopping
Bag.tsx
→
src/components/NavBar/Bag.tsx
View file @
7ce022b2
...
@@ -20,7 +20,7 @@ const CounterDot = styled.div`
...
@@ -20,7 +20,7 @@ const CounterDot = styled.div`
top: 4px;
top: 4px;
`
`
export
const
Shopping
Bag
=
()
=>
{
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
)
...
...
src/components/NavBar/index.tsx
View file @
7ce022b2
...
@@ -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
&&
<
Shopping
Bag
/>
}
{
isNftPage
&&
<
Bag
/>
}
{
!
isNftPage
&&
(
{
!
isNftPage
&&
(
<
Box
display=
{
{
sm
:
'
none
'
,
lg
:
'
flex
'
}
}
>
<
Box
display=
{
{
sm
:
'
none
'
,
lg
:
'
flex
'
}
}
>
<
ChainSelector
/>
<
ChainSelector
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment