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
e46676a1
Commit
e46676a1
authored
Mar 28, 2024
by
isstuev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
02e7c271
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
14 deletions
+26
-14
NFTItem.tsx
ui/address/tokens/NFTItem.tsx
+1
-1
TokenDetails.tsx
ui/token/TokenDetails.tsx
+1
-1
NftTokenTransferSnippet.tsx
ui/tx/NftTokenTransferSnippet.tsx
+24
-12
TxInfo.pw.tsx_default_with-token-transfer-mobile-1.png
...__/TxInfo.pw.tsx_default_with-token-transfer-mobile-1.png
+0
-0
TxInfo.pw.tsx_mobile_with-token-transfer-mobile-1.png
...s__/TxInfo.pw.tsx_mobile_with-token-transfer-mobile-1.png
+0
-0
No files found.
ui/address/tokens/NFTItem.tsx
View file @
e46676a1
...
...
@@ -15,7 +15,7 @@ import NFTItemContainer from './NFTItemContainer';
type
Props
=
AddressNFT
&
{
isLoading
:
boolean
;
withTokenLink
?:
boolean
};
const
NFTItem
=
({
token
,
value
,
isLoading
,
withTokenLink
,
...
tokenInstance
}:
Props
)
=>
{
const
valueResult
=
token
.
decimals
?
getCurrencyValue
({
value
,
decimals
:
token
.
decimals
,
accuracy
:
2
}).
valueStr
:
value
;
const
valueResult
=
token
.
decimals
&&
value
?
getCurrencyValue
({
value
,
decimals
:
token
.
decimals
,
accuracy
:
2
}).
valueStr
:
value
;
const
tokenInstanceLink
=
tokenInstance
.
id
?
route
({
pathname
:
'
/token/[hash]/instance/[id]
'
,
query
:
{
hash
:
token
.
address
,
id
:
tokenInstance
.
id
}
})
:
undefined
;
...
...
ui/token/TokenDetails.tsx
View file @
e46676a1
...
...
@@ -77,7 +77,7 @@ const TokenDetails = ({ tokenQuery }: Props) => {
let
totalSupplyValue
;
if
(
type
===
'
ERC-20
'
)
{
if
(
decimals
)
{
const
totalValue
=
totalSupply
?
getCurrencyValue
({
value
:
totalSupply
,
accuracy
:
3
,
accuracyUsd
:
2
,
exchangeRate
,
decimals
})
:
undefined
;
totalSupplyValue
=
totalValue
?.
valueStr
;
}
else
{
...
...
ui/tx/NftTokenTransferSnippet.tsx
View file @
e46676a1
...
...
@@ -15,6 +15,29 @@ interface Props {
const
NftTokenTransferSnippet
=
({
value
,
token
,
tokenId
}:
Props
)
=>
{
const
num
=
value
===
'
1
'
?
''
:
value
;
const
tokenIdContent
=
(()
=>
{
if
(
tokenId
===
null
)
{
// ERC-404 may not have an ID
if
(
token
.
type
===
'
ERC-404
'
)
{
return
null
;
}
return
<
chakra
.
span
color=
"text_secondary"
>
N/A
</
chakra
.
span
>;
}
return
(
<
NftEntity
hash=
{
token
.
address
}
id=
{
tokenId
}
fontWeight=
{
600
}
iconSize=
"md"
maxW=
{
{
base
:
'
100%
'
,
lg
:
'
150px
'
}
}
w=
"auto"
flexShrink=
{
0
}
/>
);
})();
return
(
<>
{
num
?
(
...
...
@@ -26,18 +49,7 @@ const NftTokenTransferSnippet = ({ value, token, tokenId }: Props) => {
)
:
(
<
chakra
.
span
color=
"text_secondary"
>
for token ID
</
chakra
.
span
>
)
}
{
tokenId
!==
null
?
(
<
NftEntity
hash=
{
token
.
address
}
id=
{
tokenId
}
fontWeight=
{
600
}
iconSize=
"md"
maxW=
{
{
base
:
'
100%
'
,
lg
:
'
150px
'
}
}
w=
"auto"
flexShrink=
{
0
}
/>
)
:
<
chakra
.
span
color=
"text_secondary"
>
N/A
</
chakra
.
span
>
}
{
tokenIdContent
}
<
chakra
.
span
color=
"text_secondary"
>
of
</
chakra
.
span
>
<
TokenEntity
token=
{
token
}
...
...
ui/tx/details/__screenshots__/TxInfo.pw.tsx_default_with-token-transfer-mobile-1.png
View replaced file @
02e7c271
View file @
e46676a1
185 KB
|
W:
|
H:
182 KB
|
W:
|
H:
2-up
Swipe
Onion skin
ui/tx/details/__screenshots__/TxInfo.pw.tsx_mobile_with-token-transfer-mobile-1.png
View replaced file @
02e7c271
View file @
e46676a1
166 KB
|
W:
|
H:
166 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