Remove unnecessary nested spans

This commit is contained in:
Willian Mitsuda 2021-11-11 16:14:04 -03:00
parent 36b5437643
commit 5b203bc8d4
1 changed files with 27 additions and 39 deletions

View File

@ -225,7 +225,6 @@ const Details: React.FC<DetailsProps> = ({
)}
{txData.tokenTransfers.length > 0 && (
<InfoRow title={`Tokens Transferred (${txData.tokenTransfers.length})`}>
<div>
{txData.tokenTransfers.map((t, i) => (
<TokenTransferItem
key={i}
@ -235,7 +234,6 @@ const Details: React.FC<DetailsProps> = ({
metadatas={metadatas}
/>
))}
</div>
</InfoRow>
)}
<InfoRow title="Value">
@ -262,24 +260,16 @@ const Details: React.FC<DetailsProps> = ({
{txData.type === 2 && (
<>
<InfoRow title="Max Priority Fee Per Gas">
<span>
<FormattedBalance value={txData.maxPriorityFeePerGas!} /> Ether (
<FormattedBalance
value={txData.maxPriorityFeePerGas!}
decimals={9}
/>{" "}
Gwei)
</span>
</InfoRow>
<InfoRow title="Max Fee Per Gas">
<span>
<FormattedBalance value={txData.maxFeePerGas!} /> Ether (
<FormattedBalance
value={txData.maxFeePerGas!}
decimals={9}
/>{" "}
Gwei)
</span>
<FormattedBalance value={txData.maxFeePerGas!} decimals={9} /> Gwei)
</InfoRow>
</>
)}
@ -321,7 +311,6 @@ const Details: React.FC<DetailsProps> = ({
)}
{txData.confirmedData && hasEIP1559 && (
<InfoRow title="Block Base Fee">
<span>
<FormattedBalance
value={txData.confirmedData.blockBaseFeePerGas!}
decimals={9}
@ -332,7 +321,6 @@ const Details: React.FC<DetailsProps> = ({
decimals={0}
/>{" "}
wei)
</span>
</InfoRow>
)}
{txData.confirmedData && (