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
79b02e11
Unverified
Commit
79b02e11
authored
Apr 16, 2024
by
tom goriunov
Committed by
GitHub
Apr 16, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust NFT token title (#1797)
Fixes #1790
parent
f95bb0f8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
13 deletions
+27
-13
TokenInstance.tsx
ui/pages/TokenInstance.tsx
+27
-13
No files found.
ui/pages/TokenInstance.tsx
View file @
79b02e11
...
...
@@ -174,8 +174,21 @@ const TokenInstanceContent = () => {
pagination
=
holdersQuery
.
pagination
;
}
const
title
=
(()
=>
{
if
(
typeof
tokenInstanceQuery
.
data
?.
metadata
?.
name
===
'
string
'
)
{
return
tokenInstanceQuery
.
data
.
metadata
.
name
;
}
if
(
tokenQuery
.
data
?.
symbol
)
{
return
(
tokenQuery
.
data
.
name
||
tokenQuery
.
data
.
symbol
)
+
'
#
'
+
tokenInstanceQuery
.
data
?.
id
;
}
return
`ID
${
tokenInstanceQuery
.
data
?.
id
}
`;
})();
const titleSecondRow = (
<Flex alignItems="center" w="100%" minW={ 0 } columnGap={ 2 } rowGap={ 2 } flexWrap={{ base: 'wrap', lg: 'nowrap' }}>
{ tokenQuery.data && (
<TokenEntity
token={ tokenQuery.data }
isLoading={ isLoading }
...
...
@@ -188,6 +201,7 @@ const TokenInstanceContent = () => {
w="auto"
maxW="700px"
/>
) }
{ !isLoading && tokenInstanceQuery.data && <AddressAddToWallet token={ tokenQuery.data } variant="button"/> }
<AddressQrCode address={ address } isLoading={ isLoading }/>
<AccountActionsMenu isLoading={ isLoading }/>
...
...
@@ -199,7 +213,7 @@ const TokenInstanceContent = () => {
<>
<TextAd mb={ 6 }/>
<PageTitle
title=
{
`ID ${ tokenInstanceQuery.data?.id }`
}
title={
title
}
backLink={ backLink }
contentAfter={ tokenTag }
secondRow={ titleSecondRow }
...
...
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