Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
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
vicotor
frontend
Commits
fb7f6cfc
Commit
fb7f6cfc
authored
Jun 06, 2023
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix token inventory skeleton
parent
6015bb72
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
11 deletions
+23
-11
TokenInventoryItem.tsx
ui/token/TokenInventoryItem.tsx
+23
-11
No files found.
ui/token/TokenInventoryItem.tsx
View file @
fb7f6cfc
...
@@ -14,6 +14,16 @@ import TruncatedTextTooltip from 'ui/shared/TruncatedTextTooltip';
...
@@ -14,6 +14,16 @@ import TruncatedTextTooltip from 'ui/shared/TruncatedTextTooltip';
type
Props
=
{
item
:
TokenInstance
;
isLoading
:
boolean
};
type
Props
=
{
item
:
TokenInstance
;
isLoading
:
boolean
};
const
NFTItem
=
({
item
,
isLoading
}:
Props
)
=>
{
const
NFTItem
=
({
item
,
isLoading
}:
Props
)
=>
{
const
mediaElement
=
(
<
NftMedia
mb=
"18px"
imageUrl=
{
item
.
image_url
}
animationUrl=
{
item
.
animation_url
}
isLoading=
{
isLoading
}
/>
);
return
(
return
(
<
LinkBox
<
LinkBox
w=
{
{
base
:
'
100%
'
,
lg
:
'
210px
'
}
}
w=
{
{
base
:
'
100%
'
,
lg
:
'
210px
'
}
}
...
@@ -21,21 +31,22 @@ const NFTItem = ({ item, isLoading }: Props) => {
...
@@ -21,21 +31,22 @@ const NFTItem = ({ item, isLoading }: Props) => {
borderColor=
{
useColorModeValue
(
'
blackAlpha.100
'
,
'
whiteAlpha.200
'
)
}
borderColor=
{
useColorModeValue
(
'
blackAlpha.100
'
,
'
whiteAlpha.200
'
)
}
borderRadius=
"12px"
borderRadius=
"12px"
p=
"10px"
p=
"10px"
_hover=
{
{
boxShadow
:
'
md
'
}
}
_hover=
{
{
boxShadow
:
isLoading
?
'
none
'
:
'
md
'
}
}
fontSize=
"sm"
fontSize=
"sm"
fontWeight=
{
500
}
fontWeight=
{
500
}
lineHeight=
"20px"
lineHeight=
"20px"
>
>
<
NextLink
href=
{
{
pathname
:
'
/token/[hash]/instance/[id]
'
,
query
:
{
hash
:
item
.
token
.
address
,
id
:
item
.
id
}
}
}
passHref
legacyBehavior
>
{
isLoading
?
mediaElement
:
(
<
LinkOverlay
>
<
NextLink
<
NftMedia
href=
{
{
pathname
:
'
/token/[hash]/instance/[id]
'
,
query
:
{
hash
:
item
.
token
.
address
,
id
:
item
.
id
}
}
}
mb=
"18px"
passHref
imageUrl=
{
item
.
image_url
}
legacyBehavior
animationUrl=
{
item
.
animation_url
}
>
isLoading=
{
isLoading
}
<
LinkOverlay
>
/>
{
mediaElement
}
</
LinkOverlay
>
</
LinkOverlay
>
</
NextLink
>
</
NextLink
>
)
}
{
item
.
id
&&
(
{
item
.
id
&&
(
<
Flex
mb=
{
2
}
ml=
{
1
}
>
<
Flex
mb=
{
2
}
ml=
{
1
}
>
<
Text
whiteSpace=
"pre"
variant=
"secondary"
>
ID#
</
Text
>
<
Text
whiteSpace=
"pre"
variant=
"secondary"
>
ID#
</
Text
>
...
@@ -46,6 +57,7 @@ const NFTItem = ({ item, isLoading }: Props) => {
...
@@ -46,6 +57,7 @@ const NFTItem = ({ item, isLoading }: Props) => {
textOverflow=
"ellipsis"
textOverflow=
"ellipsis"
whiteSpace=
"nowrap"
whiteSpace=
"nowrap"
display=
"block"
display=
"block"
isLoading=
{
isLoading
}
>
>
{
item
.
id
}
{
item
.
id
}
</
LinkInternal
>
</
LinkInternal
>
...
...
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