mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
make owner optional for token instance
This commit is contained in:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user