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
136c16bb
Unverified
Commit
136c16bb
authored
Nov 04, 2022
by
lynn
Committed by
GitHub
Nov 04, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: fix sell bag empty state (#5079)
* init * fix comments
parent
691dcd26
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
3 deletions
+17
-3
Bag.css.ts
src/nft/components/bag/Bag.css.ts
+3
-0
EmptyContent.tsx
src/nft/components/bag/EmptyContent.tsx
+12
-3
sprinkles.css.ts
src/nft/css/sprinkles.css.ts
+2
-0
No files found.
src/nft/components/bag/Bag.css.ts
View file @
136c16bb
...
@@ -9,6 +9,9 @@ export const bagContainer = style([
...
@@ -9,6 +9,9 @@ export const bagContainer = style([
height
:
'
full
'
,
height
:
'
full
'
,
right
:
'
0
'
,
right
:
'
0
'
,
background
:
'
backgroundSurface
'
,
background
:
'
backgroundSurface
'
,
borderLeftStyle
:
'
solid
'
,
borderColor
:
'
backgroundOutline
'
,
borderWidth
:
'
1px
'
,
color
:
'
textPrimary
'
,
color
:
'
textPrimary
'
,
paddingTop
:
'
20
'
,
paddingTop
:
'
20
'
,
paddingBottom
:
'
24
'
,
paddingBottom
:
'
24
'
,
...
...
src/nft/components/bag/EmptyContent.tsx
View file @
136c16bb
...
@@ -3,13 +3,22 @@ import { LargeBagIcon, LargeTagIcon } from 'nft/components/icons'
...
@@ -3,13 +3,22 @@ import { LargeBagIcon, LargeTagIcon } from 'nft/components/icons'
import
{
subhead
}
from
'
nft/css/common.css
'
import
{
subhead
}
from
'
nft/css/common.css
'
import
{
themeVars
}
from
'
nft/css/sprinkles.css
'
import
{
themeVars
}
from
'
nft/css/sprinkles.css
'
import
{
useLocation
}
from
'
react-router-dom
'
import
{
useLocation
}
from
'
react-router-dom
'
import
styled
from
'
styled-components/macro
'
const
StyledColumn
=
styled
(
Column
)
<
{
isProfilePage
?:
boolean
}
>
`
gap:
${({
isProfilePage
})
=>
!
isProfilePage
&&
'
12
'
}
;
margin-top: 36;
display:
${({
isProfilePage
})
=>
isProfilePage
&&
'
flex
'
}
;
justify-content:
${({
isProfilePage
})
=>
isProfilePage
&&
'
center
'
}
;
height:
${({
isProfilePage
})
=>
isProfilePage
&&
'
inherit
'
}
;
`
const
EmptyState
=
()
=>
{
const
EmptyState
=
()
=>
{
const
{
pathname
}
=
useLocation
()
const
{
pathname
}
=
useLocation
()
const
isProfilePage
=
pathname
.
startsWith
(
'
/profile
'
)
const
isProfilePage
=
pathname
.
startsWith
(
'
/profile
'
)
return
(
return
(
<
Column
gap=
{
isProfilePage
?
'
16
'
:
'
12
'
}
marginTop=
"36"
>
<
StyledColumn
isProfilePage=
{
isProfilePage
}
>
<
Center
>
<
Center
>
{
isProfilePage
?
(
{
isProfilePage
?
(
<
LargeTagIcon
color=
{
themeVars
.
colors
.
textTertiary
}
/>
<
LargeTagIcon
color=
{
themeVars
.
colors
.
textTertiary
}
/>
...
@@ -18,7 +27,7 @@ const EmptyState = () => {
...
@@ -18,7 +27,7 @@ const EmptyState = () => {
)
}
)
}
</
Center
>
</
Center
>
{
isProfilePage
?
(
{
isProfilePage
?
(
<
span
className=
{
subhead
}
>
No NFTs Selected
</
span
>
<
Center
className=
{
subhead
}
>
No NFTs selected
</
Center
>
)
:
(
)
:
(
<
Column
gap=
"16"
>
<
Column
gap=
"16"
>
<
Center
className=
{
subhead
}
style=
{
{
lineHeight
:
'
24px
'
}
}
>
<
Center
className=
{
subhead
}
style=
{
{
lineHeight
:
'
24px
'
}
}
>
...
@@ -29,7 +38,7 @@ const EmptyState = () => {
...
@@ -29,7 +38,7 @@ const EmptyState = () => {
</
Center
>
</
Center
>
</
Column
>
</
Column
>
)
}
)
}
</
Column
>
</
Styled
Column
>
)
)
}
}
...
...
src/nft/css/sprinkles.css.ts
View file @
136c16bb
...
@@ -371,6 +371,7 @@ const colorStyles = defineProperties({
...
@@ -371,6 +371,7 @@ const colorStyles = defineProperties({
color
:
vars
.
color
,
color
:
vars
.
color
,
background
:
vars
.
color
,
background
:
vars
.
color
,
borderColor
:
vars
.
color
,
borderColor
:
vars
.
color
,
borderLeftColor
:
vars
.
color
,
borderBottomColor
:
vars
.
color
,
borderBottomColor
:
vars
.
color
,
borderTopColor
:
vars
.
color
,
borderTopColor
:
vars
.
color
,
backgroundColor
:
vars
.
color
,
backgroundColor
:
vars
.
color
,
...
@@ -390,6 +391,7 @@ const unresponsiveProperties = defineProperties({
...
@@ -390,6 +391,7 @@ const unresponsiveProperties = defineProperties({
properties
:
{
properties
:
{
cursor
:
[
'
default
'
,
'
pointer
'
,
'
auto
'
],
cursor
:
[
'
default
'
,
'
pointer
'
,
'
auto
'
],
borderStyle
,
borderStyle
,
borderLeftStyle
:
borderStyle
,
borderBottomStyle
:
borderStyle
,
borderBottomStyle
:
borderStyle
,
borderTopStyle
:
borderStyle
,
borderTopStyle
:
borderStyle
,
borderRadius
:
vars
.
radii
,
borderRadius
:
vars
.
radii
,
...
...
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