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
b875a1e2
Unverified
Commit
b875a1e2
authored
Apr 17, 2023
by
tom goriunov
Committed by
GitHub
Apr 17, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #766 from blockscout/token-instance/optinal-owner
make owner optional for token instance
parents
a78b3c0c
d497fcb2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
11 deletions
+13
-11
token.ts
types/api/token.ts
+1
-1
TokenInstanceDetails.tsx
ui/tokenInstance/TokenInstanceDetails.tsx
+12
-10
No files found.
types/api/token.ts
View file @
b875a1e2
...
...
@@ -41,7 +41,7 @@ export interface TokenInstance {
animation_url
:
string
|
null
;
external_app_url
:
string
|
null
;
metadata
:
Record
<
string
,
unknown
>
|
null
;
owner
:
AddressParam
;
owner
:
AddressParam
|
null
;
token
:
TokenInfo
;
}
...
...
ui/tokenInstance/TokenInstanceDetails.tsx
View file @
b875a1e2
...
...
@@ -60,16 +60,18 @@ const TokenInstanceDetails = ({ data, scrollRef }: Props) => {
>
<
TokenSnippet
hash=
{
data
.
token
.
address
}
name=
{
data
.
token
.
name
}
/>
</
DetailsInfoItem
>
<
DetailsInfoItem
title=
"Owner"
hint=
"Current owner of this token instance"
>
<
Address
>
<
AddressIcon
address=
{
data
.
owner
}
/>
<
AddressLink
type=
"address"
hash=
{
data
.
owner
.
hash
}
ml=
{
2
}
/>
<
CopyToClipboard
text=
{
data
.
owner
.
hash
}
/>
</
Address
>
</
DetailsInfoItem
>
{
data
.
owner
&&
(
<
DetailsInfoItem
title=
"Owner"
hint=
"Current owner of this token instance"
>
<
Address
>
<
AddressIcon
address=
{
data
.
owner
}
/>
<
AddressLink
type=
"address"
hash=
{
data
.
owner
.
hash
}
ml=
{
2
}
/>
<
CopyToClipboard
text=
{
data
.
owner
.
hash
}
/>
</
Address
>
</
DetailsInfoItem
>
)
}
<
TokenInstanceCreatorAddress
hash=
{
data
.
token
.
address
}
/>
<
DetailsInfoItem
title=
"Token ID"
...
...
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