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
de3956e2
Commit
de3956e2
authored
May 17, 2023
by
isstuev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change link to address-token
parent
a8d0ca0d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
ERC721TokensListItem.tsx
ui/address/tokens/ERC721TokensListItem.tsx
+5
-1
ERC721TokensTableItem.tsx
ui/address/tokens/ERC721TokensTableItem.tsx
+4
-1
No files found.
ui/address/tokens/ERC721TokensListItem.tsx
View file @
de3956e2
import
{
Flex
,
HStack
,
Text
}
from
'
@chakra-ui/react
'
;
import
{
useRouter
}
from
'
next/router
'
;
import
React
from
'
react
'
;
import
type
{
AddressTokenBalance
}
from
'
types/api/address
'
;
...
...
@@ -12,6 +13,9 @@ import TokenLogo from 'ui/shared/TokenLogo';
type
Props
=
AddressTokenBalance
;
const
ERC721TokensListItem
=
({
token
,
value
}:
Props
)
=>
{
const
router
=
useRouter
();
const
hash
=
router
.
query
.
hash
?.
toString
()
||
''
;
const
tokenString
=
[
token
.
name
,
token
.
symbol
&&
`(
${
token
.
symbol
}
)`
].
filter
(
Boolean
).
join
(
'
'
);
...
...
@@ -19,7 +23,7 @@ const ERC721TokensListItem = ({ token, value }: Props) => {
<
ListItemMobile
rowGap=
{
2
}
>
<
Flex
alignItems=
"center"
width=
"100%"
>
<
TokenLogo
hash=
{
token
.
address
}
name=
{
token
.
name
}
boxSize=
{
6
}
mr=
{
2
}
/>
<
AddressLink
fontWeight=
"700"
hash=
{
token
.
address
}
type=
"
token"
alias=
{
tokenString
}
/>
<
AddressLink
fontWeight=
"700"
hash=
{
hash
}
tokenHash=
{
token
.
address
}
type=
"address_
token"
alias=
{
tokenString
}
/>
</
Flex
>
<
Flex
alignItems=
"center"
pl=
{
8
}
>
<
AddressLink
hash=
{
token
.
address
}
type=
"address"
truncation=
"constant"
/>
...
...
ui/address/tokens/ERC721TokensTableItem.tsx
View file @
de3956e2
import
{
Tr
,
Td
,
Flex
}
from
'
@chakra-ui/react
'
;
import
{
useRouter
}
from
'
next/router
'
;
import
React
from
'
react
'
;
import
type
{
AddressTokenBalance
}
from
'
types/api/address
'
;
...
...
@@ -14,7 +15,9 @@ const ERC721TokensTableItem = ({
token
,
value
,
}:
Props
)
=>
{
const
router
=
useRouter
();
const
hash
=
router
.
query
.
hash
?.
toString
()
||
''
;
const
tokenString
=
[
token
.
name
,
token
.
symbol
&&
`(
${
token
.
symbol
}
)`
].
filter
(
Boolean
).
join
(
'
'
);
return
(
...
...
@@ -22,7 +25,7 @@ const ERC721TokensTableItem = ({
<
Td
verticalAlign=
"middle"
>
<
Flex
alignItems=
"center"
>
<
TokenLogo
hash=
{
token
.
address
}
name=
{
token
.
name
}
boxSize=
{
6
}
mr=
{
2
}
/>
<
AddressLink
fontWeight=
"700"
hash=
{
token
.
address
}
type=
"
token"
alias=
{
tokenString
}
/>
<
AddressLink
fontWeight=
"700"
hash=
{
hash
}
tokenHash=
{
token
.
address
}
type=
"address_
token"
alias=
{
tokenString
}
/>
</
Flex
>
</
Td
>
<
Td
verticalAlign=
"middle"
>
...
...
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