Commit b875a1e2 authored by tom goriunov's avatar tom goriunov Committed by GitHub

Merge pull request #766 from blockscout/token-instance/optinal-owner

make owner optional for token instance
parents a78b3c0c d497fcb2
...@@ -41,7 +41,7 @@ export interface TokenInstance { ...@@ -41,7 +41,7 @@ export interface TokenInstance {
animation_url: string | null; animation_url: string | null;
external_app_url: string | null; external_app_url: string | null;
metadata: Record<string, unknown> | null; metadata: Record<string, unknown> | null;
owner: AddressParam; owner: AddressParam | null;
token: TokenInfo; token: TokenInfo;
} }
......
...@@ -60,16 +60,18 @@ const TokenInstanceDetails = ({ data, scrollRef }: Props) => { ...@@ -60,16 +60,18 @@ const TokenInstanceDetails = ({ data, scrollRef }: Props) => {
> >
<TokenSnippet hash={ data.token.address } name={ data.token.name }/> <TokenSnippet hash={ data.token.address } name={ data.token.name }/>
</DetailsInfoItem> </DetailsInfoItem>
<DetailsInfoItem { data.owner && (
title="Owner" <DetailsInfoItem
hint="Current owner of this token instance" title="Owner"
> hint="Current owner of this token instance"
<Address> >
<AddressIcon address={ data.owner }/> <Address>
<AddressLink type="address" hash={ data.owner.hash } ml={ 2 }/> <AddressIcon address={ data.owner }/>
<CopyToClipboard text={ data.owner.hash }/> <AddressLink type="address" hash={ data.owner.hash } ml={ 2 }/>
</Address> <CopyToClipboard text={ data.owner.hash }/>
</DetailsInfoItem> </Address>
</DetailsInfoItem>
) }
<TokenInstanceCreatorAddress hash={ data.token.address }/> <TokenInstanceCreatorAddress hash={ data.token.address }/>
<DetailsInfoItem <DetailsInfoItem
title="Token ID" title="Token ID"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment