Commit 2b2aac2f authored by tom's avatar tom

fixes after review

parent 4d95d1ea
...@@ -195,6 +195,7 @@ const ContractCode = ({ addressHash, noSocket }: Props) => { ...@@ -195,6 +195,7 @@ const ContractCode = ({ addressHash, noSocket }: Props) => {
truncation="constant" truncation="constant"
fontSize="sm" fontSize="sm"
fontWeight="500" fontWeight="500"
noCopy
/> />
<span>. </span> <span>. </span>
<Box> <Box>
......
...@@ -47,7 +47,7 @@ const ContractConnectWallet = () => { ...@@ -47,7 +47,7 @@ const ContractConnectWallet = () => {
<Flex alignItems="center"> <Flex alignItems="center">
<span>Connected to </span> <span>Connected to </span>
<AddressEntity <AddressEntity
address={{ hash: address, name: '', is_contract: false, implementation_name: null }} address={{ hash: address }}
truncation={ isMobile ? 'constant' : 'dynamic' } truncation={ isMobile ? 'constant' : 'dynamic' }
fontWeight={ 600 } fontWeight={ 600 }
ml={ 2 } ml={ 2 }
......
...@@ -69,6 +69,8 @@ const LatestBlocksItem = ({ block, h, isLoading }: Props) => { ...@@ -69,6 +69,8 @@ const LatestBlocksItem = ({ block, h, isLoading }: Props) => {
<AddressEntity <AddressEntity
address={ block.miner } address={ block.miner }
isLoading={ isLoading } isLoading={ isLoading }
noIcon
noCopy
/> />
</> </>
) } ) }
......
...@@ -8,6 +8,7 @@ import type { CsvExportParams } from 'types/client/address'; ...@@ -8,6 +8,7 @@ import type { CsvExportParams } from 'types/client/address';
import type { ResourceName } from 'lib/api/resources'; import type { ResourceName } from 'lib/api/resources';
import useApiQuery from 'lib/api/useApiQuery'; import useApiQuery from 'lib/api/useApiQuery';
import { useAppContext } from 'lib/contexts/app'; import { useAppContext } from 'lib/contexts/app';
import useIsMobile from 'lib/hooks/useIsMobile';
import { nbsp } from 'lib/html-entities'; import { nbsp } from 'lib/html-entities';
import CsvExportForm from 'ui/csvExport/CsvExportForm'; import CsvExportForm from 'ui/csvExport/CsvExportForm';
import ContentLoader from 'ui/shared/ContentLoader'; import ContentLoader from 'ui/shared/ContentLoader';
...@@ -58,6 +59,7 @@ const isCorrectExportType = (type: string): type is CsvExportParams['type'] => O ...@@ -58,6 +59,7 @@ const isCorrectExportType = (type: string): type is CsvExportParams['type'] => O
const CsvExport = () => { const CsvExport = () => {
const router = useRouter(); const router = useRouter();
const appProps = useAppContext(); const appProps = useAppContext();
const isMobile = useIsMobile();
const addressHash = router.query.address?.toString() || ''; const addressHash = router.query.address?.toString() || '';
const exportType = router.query.type?.toString() || ''; const exportType = router.query.type?.toString() || '';
...@@ -131,6 +133,7 @@ const CsvExport = () => { ...@@ -131,6 +133,7 @@ const CsvExport = () => {
<span>Export { EXPORT_TYPES[exportType].text } for address </span> <span>Export { EXPORT_TYPES[exportType].text } for address </span>
<AddressEntity <AddressEntity
address={{ hash: addressHash, is_contract: true, implementation_name: null }} address={{ hash: addressHash, is_contract: true, implementation_name: null }}
truncation={ isMobile ? 'constant' : 'dynamic' }
noCopy noCopy
/> />
<span>{ nbsp }</span> <span>{ nbsp }</span>
......
...@@ -15,7 +15,6 @@ interface Props { ...@@ -15,7 +15,6 @@ interface Props {
} }
const SearchBarSuggestBlock = ({ data, isMobile, searchTerm }: Props) => { const SearchBarSuggestBlock = ({ data, isMobile, searchTerm }: Props) => {
// const icon = <Icon as={ blockIcon } boxSize={ 6 } color="gray.500"/>;
const icon = <BlockEntity.Icon/>; const icon = <BlockEntity.Icon/>;
const shouldHighlightHash = data.block_hash.toLowerCase() === searchTerm.toLowerCase(); const shouldHighlightHash = data.block_hash.toLowerCase() === searchTerm.toLowerCase();
const blockNumber = ( const blockNumber = (
......
...@@ -94,6 +94,7 @@ const TxsListItem = ({ tx, isLoading, showBlockInfo, currentAddress, enableTimeI ...@@ -94,6 +94,7 @@ const TxsListItem = ({ tx, isLoading, showBlockInfo, currentAddress, enableTimeI
noLink={ isOut } noLink={ isOut }
noCopy={ isOut } noCopy={ isOut }
w={ `calc((100% - ${ currentAddress ? TAG_WIDTH + 16 : ARROW_WIDTH + 8 }px)/2)` } w={ `calc((100% - ${ currentAddress ? TAG_WIDTH + 16 : ARROW_WIDTH + 8 }px)/2)` }
fontWeight="500"
/> />
{ (isIn || isOut) ? { (isIn || isOut) ?
<InOutTag isIn={ isIn } isOut={ isOut } width="48px" mx={ 2 } isLoading={ isLoading }/> : ( <InOutTag isIn={ isIn } isOut={ isOut } width="48px" mx={ 2 } isLoading={ isLoading }/> : (
...@@ -113,6 +114,7 @@ const TxsListItem = ({ tx, isLoading, showBlockInfo, currentAddress, enableTimeI ...@@ -113,6 +114,7 @@ const TxsListItem = ({ tx, isLoading, showBlockInfo, currentAddress, enableTimeI
noLink={ isIn } noLink={ isIn }
noCopy={ isIn } noCopy={ isIn }
w={ `calc((100% - ${ currentAddress ? TAG_WIDTH + 16 : ARROW_WIDTH + 8 }px)/2)` } w={ `calc((100% - ${ currentAddress ? TAG_WIDTH + 16 : ARROW_WIDTH + 8 }px)/2)` }
fontWeight="500"
/> />
) : '-' } ) : '-' }
</Flex> </Flex>
......
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