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
cc644b71
Commit
cc644b71
authored
Jul 12, 2023
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix NFT attribute link href
parent
ccfdbcf5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
TokenInstanceMetadataInfo.tsx
ui/tokenInstance/details/TokenInstanceMetadataInfo.tsx
+11
-5
No files found.
ui/tokenInstance/details/TokenInstanceMetadataInfo.tsx
View file @
cc644b71
import
{
Box
,
Grid
,
GridItem
,
Icon
,
Link
,
Skeleton
,
useColorModeValue
}
from
'
@chakra-ui/react
'
;
import
{
Box
,
Grid
,
GridItem
,
Skeleton
,
useColorModeValue
}
from
'
@chakra-ui/react
'
;
import
React
from
'
react
'
;
import
type
{
TokenInstance
}
from
'
types/api/token
'
;
import
type
{
MetadataAttributes
}
from
'
types/client/token
'
;
import
arrowIcon
from
'
icons/arrows/north-east.svg
'
;
import
parseMetadata
from
'
lib/token/parseMetadata
'
;
import
DetailsInfoItem
from
'
ui/shared/DetailsInfoItem
'
;
import
LinkExternal
from
'
ui/shared/LinkExternal
'
;
import
TruncatedTextTooltip
from
'
ui/shared/TruncatedTextTooltip
'
;
import
TokenInstanceDivider
from
'
./TokenInstanceDivider
'
;
...
...
@@ -27,14 +27,20 @@ const Item = ({ data, isLoading }: ItemProps) => {
const
value
=
(()
=>
{
if
(
data
.
value_type
===
'
URL
'
)
{
return
(
<
Link
whiteSpace=
"nowrap"
display=
"flex"
alignItems=
"center"
w=
"100%"
overflow=
"hidden"
fontSize=
"sm"
>
<
LinkExternal
whiteSpace=
"nowrap"
display=
"inline-flex"
alignItems=
"center"
w=
"100%"
overflow=
"hidden"
href=
{
data
.
value
}
>
<
TruncatedTextTooltip
label=
{
data
.
value
}
>
<
Box
w=
"calc(100% - 16px)"
overflow=
"hidden"
textOverflow=
"ellipsis"
>
<
span
>
{
data
.
value
}
</
span
>
</
Box
>
</
TruncatedTextTooltip
>
<
Icon
as=
{
arrowIcon
}
boxSize=
{
4
}
/>
</
Link
>
</
LinkExternal
>
);
}
...
...
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