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
f92c2505
Commit
f92c2505
authored
Feb 21, 2023
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
title tags for address and token
parent
aae435fe
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
Address.tsx
ui/pages/Address.tsx
+6
-1
Token.tsx
ui/pages/Token.tsx
+2
-1
No files found.
ui/pages/Address.tsx
View file @
f92c2505
...
@@ -51,10 +51,15 @@ const AddressPageContent = () => {
...
@@ -51,10 +51,15 @@ const AddressPageContent = () => {
});
});
const
tags
=
[
const
tags
=
[
addressQuery
.
data
?.
is_contract
?
{
label
:
'
contract
'
,
display_name
:
'
Contract
'
}
:
{
label
:
'
eoa
'
,
display_name
:
'
EOA
'
},
addressQuery
.
data
?.
implementation_address
?
{
label
:
'
proxy
'
,
display_name
:
'
Proxy
'
}
:
undefined
,
addressQuery
.
data
?.
token
?
{
label
:
'
token
'
,
display_name
:
'
Token
'
}
:
undefined
,
...(
addressQuery
.
data
?.
private_tags
||
[]),
...(
addressQuery
.
data
?.
private_tags
||
[]),
...(
addressQuery
.
data
?.
public_tags
||
[]),
...(
addressQuery
.
data
?.
public_tags
||
[]),
...(
addressQuery
.
data
?.
watchlist_names
||
[]),
...(
addressQuery
.
data
?.
watchlist_names
||
[]),
].
map
((
tag
)
=>
<
Tag
key=
{
tag
.
label
}
>
{
tag
.
display_name
}
</
Tag
>);
]
.
filter
(
notEmpty
)
.
map
((
tag
)
=>
<
Tag
key=
{
tag
.
label
}
>
{
tag
.
display_name
}
</
Tag
>);
const
contractTabs
=
useContractTabs
(
addressQuery
.
data
);
const
contractTabs
=
useContractTabs
(
addressQuery
.
data
);
...
...
ui/pages/Token.tsx
View file @
f92c2505
import
{
Skeleton
,
Box
,
Flex
,
SkeletonCircle
,
Icon
}
from
'
@chakra-ui/react
'
;
import
{
Skeleton
,
Box
,
Flex
,
SkeletonCircle
,
Icon
,
Tag
}
from
'
@chakra-ui/react
'
;
import
{
useRouter
}
from
'
next/router
'
;
import
{
useRouter
}
from
'
next/router
'
;
import
React
,
{
useEffect
}
from
'
react
'
;
import
React
,
{
useEffect
}
from
'
react
'
;
...
@@ -158,6 +158,7 @@ const TokenPageContent = () => {
...
@@ -158,6 +158,7 @@ const TokenPageContent = () => {
additionalsLeft=
{
(
additionalsLeft=
{
(
<
TokenLogo
hash=
{
tokenQuery
.
data
?.
address
}
name=
{
tokenQuery
.
data
?.
name
}
boxSize=
{
6
}
/>
<
TokenLogo
hash=
{
tokenQuery
.
data
?.
address
}
name=
{
tokenQuery
.
data
?.
name
}
boxSize=
{
6
}
/>
)
}
)
}
additionalsRight=
{
<
Tag
>
{
tokenQuery
.
data
?.
type
}
</
Tag
>
}
/>
/>
</>
</>
)
}
)
}
...
...
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