Commit 34f5d0ef authored by tom's avatar tom

minor improvments

parent dc41d7f5
...@@ -98,7 +98,7 @@ const AddressDetails = ({ addressQuery }: Props) => { ...@@ -98,7 +98,7 @@ const AddressDetails = ({ addressQuery }: Props) => {
> >
<AddressLink hash={ addressQuery.data.creator_address_hash } truncation="constant"/> <AddressLink hash={ addressQuery.data.creator_address_hash } truncation="constant"/>
<Text whiteSpace="pre"> at </Text> <Text whiteSpace="pre"> at </Text>
<AddressLink hash={ addressQuery.data.creation_tx_hash } truncation="constant"/> <AddressLink hash={ addressQuery.data.creation_tx_hash } type="transaction" truncation="constant"/>
</DetailsInfoItem> </DetailsInfoItem>
) } ) }
<AddressBalance data={ addressQuery.data }/> <AddressBalance data={ addressQuery.data }/>
......
import { Flex, Tag } from '@chakra-ui/react'; import { Flex, Skeleton, Tag } from '@chakra-ui/react';
import { useRouter } from 'next/router'; import { useRouter } from 'next/router';
import React from 'react'; import React from 'react';
...@@ -51,7 +51,11 @@ const AddressPageContent = () => { ...@@ -51,7 +51,11 @@ const AddressPageContent = () => {
return ( return (
<Page> <Page>
<Flex alignItems="center" columnGap={ 3 }> <Flex alignItems="center" columnGap={ 3 }>
<PageTitle text={ `${ addressQuery.data?.is_contract ? 'Contract' : 'Address' } details` }/> { addressQuery.isLoading ? (
<Skeleton h={ 10 } w="260px" mb={ 6 }/>
) : (
<PageTitle text={ `${ addressQuery.data?.is_contract ? 'Contract' : 'Address' } details` }/>
) }
{ tags.length > 0 && ( { tags.length > 0 && (
<Flex mb={ 6 } columnGap={ 2 }> <Flex mb={ 6 } columnGap={ 2 }>
{ tags } { tags }
......
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