Reorder fields

This commit is contained in:
Willian Mitsuda 2021-07-28 21:54:21 -03:00
parent 1e34e7fc8d
commit 71f8e5ad3b
1 changed files with 21 additions and 21 deletions

View File

@ -152,19 +152,6 @@ const Details: React.FC<DetailsProps> = ({
>
<TransactionType type={txData.type} />
</InfoRow>
{hasEIP1559 && (
<InfoRow title="Block Base Fee">
<span>
<FormattedBalance value={txData.blockBaseFeePerGas!} decimals={9} />{" "}
Gwei (
<FormattedBalance
value={txData.blockBaseFeePerGas!}
decimals={0}
/>{" "}
wei)
</span>
</InfoRow>
)}
{txData.type === 2 && (
<>
<InfoRow title="Max Priority Fee Per Gas">
@ -189,14 +176,6 @@ const Details: React.FC<DetailsProps> = ({
</InfoRow>
</>
)}
<InfoRow title="Transaction Fee">
<div className="space-y-3">
<div>
<FormattedBalance value={txData.fee} /> Ether
</div>
{hasEIP1559 && <RewardSplit txData={txData} />}
</div>
</InfoRow>
<InfoRow title="Gas Price">
<div className="flex items-baseline space-x-1">
<span>
@ -225,6 +204,27 @@ const Details: React.FC<DetailsProps> = ({
/>
</div>
</InfoRow>
{hasEIP1559 && (
<InfoRow title="Block Base Fee">
<span>
<FormattedBalance value={txData.blockBaseFeePerGas!} decimals={9} />{" "}
Gwei (
<FormattedBalance
value={txData.blockBaseFeePerGas!}
decimals={0}
/>{" "}
wei)
</span>
</InfoRow>
)}
<InfoRow title="Transaction Fee">
<div className="space-y-3">
<div>
<FormattedBalance value={txData.fee} /> Ether
</div>
{hasEIP1559 && <RewardSplit txData={txData} />}
</div>
</InfoRow>
<InfoRow title="Ether Price">N/A</InfoRow>
<InfoRow title="Nonce">{txData.nonce}</InfoRow>
<InfoRow title="Position in Block">