Commit 5a208252 authored by isstuev's avatar isstuev

Merge branch 'release/v1-38-0' of https://github.com/blockscout/frontend into release/v1-38-0

parents e41ae5d9 080809cf
...@@ -10,7 +10,7 @@ interface Props { ...@@ -10,7 +10,7 @@ interface Props {
} }
const ContractDetailsAlertVerificationSource = ({ data }: Props) => { const ContractDetailsAlertVerificationSource = ({ data }: Props) => {
if (data?.is_verified_via_eth_bytecode_db) { if (data?.is_verified && data?.is_verified_via_eth_bytecode_db) {
return ( return (
<Alert status="warning" whiteSpace="pre-wrap" flexWrap="wrap"> <Alert status="warning" whiteSpace="pre-wrap" flexWrap="wrap">
<span>This contract has been { data.is_partially_verified ? 'partially ' : '' }verified using </span> <span>This contract has been { data.is_partially_verified ? 'partially ' : '' }verified using </span>
...@@ -24,7 +24,7 @@ const ContractDetailsAlertVerificationSource = ({ data }: Props) => { ...@@ -24,7 +24,7 @@ const ContractDetailsAlertVerificationSource = ({ data }: Props) => {
); );
} }
if (data?.is_verified_via_sourcify) { if (data?.is_verified && data?.is_verified_via_sourcify) {
return ( return (
<Alert status="warning" whiteSpace="pre-wrap" flexWrap="wrap"> <Alert status="warning" whiteSpace="pre-wrap" flexWrap="wrap">
<span>This contract has been { data.is_partially_verified ? 'partially ' : '' }verified via Sourcify. </span> <span>This contract has been { data.is_partially_verified ? 'partially ' : '' }verified via Sourcify. </span>
......
...@@ -31,7 +31,7 @@ const init = () => { ...@@ -31,7 +31,7 @@ const init = () => {
projectId: feature.walletConnect.projectId, projectId: feature.walletConnect.projectId,
features: { features: {
analytics: false, analytics: false,
email: true, email: false,
socials: [], socials: [],
onramp: false, onramp: false,
swaps: false, swaps: false,
......
...@@ -14,6 +14,7 @@ import AddressEntity from 'ui/shared/entities/address/AddressEntity'; ...@@ -14,6 +14,7 @@ import AddressEntity from 'ui/shared/entities/address/AddressEntity';
import IconSvg from 'ui/shared/IconSvg'; import IconSvg from 'ui/shared/IconSvg';
import ListItemMobile from 'ui/shared/ListItemMobile/ListItemMobile'; import ListItemMobile from 'ui/shared/ListItemMobile/ListItemMobile';
import TimeAgoWithTooltip from 'ui/shared/TimeAgoWithTooltip'; import TimeAgoWithTooltip from 'ui/shared/TimeAgoWithTooltip';
import TruncatedValue from 'ui/shared/TruncatedValue';
interface Props { interface Props {
data: VerifiedContract; data: VerifiedContract;
...@@ -57,11 +58,13 @@ const VerifiedContractsListItem = ({ data, isLoading }: Props) => { ...@@ -57,11 +58,13 @@ const VerifiedContractsListItem = ({ data, isLoading }: Props) => {
flexShrink={ 0 } flexShrink={ 0 }
/> />
</Flex> </Flex>
<Flex columnGap={ 3 }> <Flex columnGap={ 3 } w="100%">
<Skeleton isLoaded={ !isLoading } fontWeight={ 500 }>Balance { currencyUnits.ether }</Skeleton> <Skeleton isLoaded={ !isLoading } fontWeight={ 500 } flexShrink="0">Balance { currencyUnits.ether }</Skeleton>
<Skeleton isLoaded={ !isLoading } color="text_secondary"> <TruncatedValue
<span>{ balance }</span> value={ balance }
</Skeleton> isLoading={ isLoading }
/>
</Flex> </Flex>
<Flex columnGap={ 3 }> <Flex columnGap={ 3 }>
<Skeleton isLoaded={ !isLoading } fontWeight={ 500 }>Txs count</Skeleton> <Skeleton isLoaded={ !isLoading } fontWeight={ 500 }>Txs count</Skeleton>
......
...@@ -12,6 +12,7 @@ import ContractCertifiedLabel from 'ui/shared/ContractCertifiedLabel'; ...@@ -12,6 +12,7 @@ import ContractCertifiedLabel from 'ui/shared/ContractCertifiedLabel';
import AddressEntity from 'ui/shared/entities/address/AddressEntity'; import AddressEntity from 'ui/shared/entities/address/AddressEntity';
import IconSvg from 'ui/shared/IconSvg'; import IconSvg from 'ui/shared/IconSvg';
import TimeAgoWithTooltip from 'ui/shared/TimeAgoWithTooltip'; import TimeAgoWithTooltip from 'ui/shared/TimeAgoWithTooltip';
import TruncatedValue from 'ui/shared/TruncatedValue';
interface Props { interface Props {
data: VerifiedContract; data: VerifiedContract;
...@@ -56,9 +57,12 @@ const VerifiedContractsTableItem = ({ data, isLoading }: Props) => { ...@@ -56,9 +57,12 @@ const VerifiedContractsTableItem = ({ data, isLoading }: Props) => {
/> />
</Td> </Td>
<Td isNumeric> <Td isNumeric>
<Skeleton isLoaded={ !isLoading } display="inline-block" my={ 1 }> <TruncatedValue
{ balance } value={ balance }
</Skeleton> isLoading={ isLoading }
my={ 1 }
w="100%"
/>
</Td> </Td>
<Td isNumeric> <Td isNumeric>
<Skeleton isLoaded={ !isLoading } display="inline-block" my={ 1 }> <Skeleton isLoaded={ !isLoading } display="inline-block" my={ 1 }>
......
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