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
b0507a2d
Commit
b0507a2d
authored
Dec 14, 2023
by
isstuev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
token transfers fix
parent
84ed9b9b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
5 deletions
+20
-5
TokenTransferListItem.tsx
ui/token/TokenTransfer/TokenTransferListItem.tsx
+20
-5
TokenTransfer.pw.tsx_mobile_erc1155-mobile-1.png
...nshots__/TokenTransfer.pw.tsx_mobile_erc1155-mobile-1.png
+0
-0
No files found.
ui/token/TokenTransfer/TokenTransferListItem.tsx
View file @
b0507a2d
import
{
Flex
,
Skeleton
}
from
'
@chakra-ui/react
'
;
import
{
Grid
,
Flex
,
Skeleton
}
from
'
@chakra-ui/react
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
type
{
TokenTransfer
}
from
'
types/api/tokenTransfer
'
;
import
type
{
TokenTransfer
}
from
'
types/api/tokenTransfer
'
;
...
@@ -72,16 +72,31 @@ const TokenTransferListItem = ({
...
@@ -72,16 +72,31 @@ const TokenTransferListItem = ({
/>
/>
</
Flex
>
</
Flex
>
{
valueStr
&&
(
token
.
type
===
'
ERC-20
'
||
token
.
type
===
'
ERC-1155
'
)
&&
(
{
valueStr
&&
(
token
.
type
===
'
ERC-20
'
||
token
.
type
===
'
ERC-1155
'
)
&&
(
<
Flex
columnGap=
{
2
}
w=
"100%"
>
<
Grid
gap=
{
2
}
templateColumns=
{
`1fr auto auto${ usd ? ' auto' : '' }`
}
>
<
Skeleton
isLoaded=
{
!
isLoading
}
flexShrink=
{
0
}
fontWeight=
{
500
}
>
<
Skeleton
isLoaded=
{
!
isLoading
}
flexShrink=
{
0
}
fontWeight=
{
500
}
>
Value
Value
</
Skeleton
>
</
Skeleton
>
<
Skeleton
isLoaded=
{
!
isLoading
}
color=
"text_secondary"
>
<
Skeleton
isLoaded=
{
!
isLoading
}
color=
"text_secondary"
wordBreak=
"break-all"
overflow=
"hidden"
flexGrow=
{
1
}
>
<
span
>
{
valueStr
}
</
span
>
<
span
>
{
valueStr
}
</
span
>
</
Skeleton
>
</
Skeleton
>
{
token
.
symbol
&&
<
TruncatedValue
isLoading=
{
isLoading
}
value=
{
token
.
symbol
}
/>
}
{
token
.
symbol
&&
<
TruncatedValue
isLoading=
{
isLoading
}
value=
{
token
.
symbol
}
/>
}
{
usd
&&
<
Skeleton
isLoaded=
{
!
isLoading
}
color=
"text_secondary"
><
span
>
($
{
usd
}
)
</
span
></
Skeleton
>
}
{
usd
&&
(
</
Flex
>
<
Skeleton
isLoaded=
{
!
isLoading
}
color=
"text_secondary"
wordBreak=
"break-all"
overflow=
"hidden"
>
<
span
>
($
{
usd
}
)
</
span
>
</
Skeleton
>
)
}
</
Grid
>
)
}
)
}
{
'
token_id
'
in
total
&&
(
token
.
type
===
'
ERC-721
'
||
token
.
type
===
'
ERC-1155
'
)
&&
(
{
'
token_id
'
in
total
&&
(
token
.
type
===
'
ERC-721
'
||
token
.
type
===
'
ERC-1155
'
)
&&
(
<
NftEntity
<
NftEntity
...
...
ui/token/TokenTransfer/__screenshots__/TokenTransfer.pw.tsx_mobile_erc1155-mobile-1.png
View replaced file @
84ed9b9b
View file @
b0507a2d
60.1 KB
|
W:
|
H:
62.2 KB
|
W:
|
H:
2-up
Swipe
Onion skin
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