Skip to content

Commit

Permalink
fix(suite): fix padding in basic tx details
Browse files Browse the repository at this point in the history
  • Loading branch information
MiroslavProchazka authored and adamhavel committed Sep 30, 2024
1 parent 86c7553 commit 1a4aad5
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ export const BasicTxDetails = ({
<Grid>
{/* MINED TIME */}
<Title>
<Icon name="calendar" size={10} />
<Icon name="calendar" size={10} margin={{ right: spacings.xs }} />
{isConfirmed ? (
<Translation id="TR_MINED_TIME" />
) : (
Expand All @@ -252,7 +252,7 @@ export const BasicTxDetails = ({

{/* TX ID */}
<Title>
<Icon name="biometric" size={10} />
<Icon name="biometric" size={10} margin={{ right: spacings.xs }} />
<Translation id="TR_TXID" />
</Title>

Expand Down Expand Up @@ -287,13 +287,13 @@ export const BasicTxDetails = ({
{tx.ethereumSpecific && (
<>
<Title>
<Icon name="gas" size={10} />
<Icon name="gas" size={10} margin={{ right: spacings.xs }} />
<Translation id="TR_GAS_LIMIT" />
</Title>
<Value>{tx.ethereumSpecific.gasLimit}</Value>

<Title>
<Icon name="gas" size={10} />
<Icon name="gas" size={10} margin={{ right: spacings.xs }} />
<Translation id="TR_GAS_USED" />
</Title>
<Value>
Expand All @@ -305,7 +305,7 @@ export const BasicTxDetails = ({
</Value>

<Title>
<Icon name="gas" size={10} />
<Icon name="gas" size={10} margin={{ right: spacings.xs }} />
<Translation id="TR_GAS_PRICE" />
</Title>
<Value>{`${fromWei(tx.ethereumSpecific?.gasPrice ?? '0', 'gwei')} ${getFeeUnits(
Expand All @@ -316,7 +316,7 @@ export const BasicTxDetails = ({
<IconPlaceholder>#</IconPlaceholder>
<Translation id="TR_NONCE" />
</Title>
<Value>{tx.ethereumSpecific.nonce}</Value>
<Value>{tx.ethereumSpecific?.nonce}</Value>
</>
)}
</Grid>
Expand Down

0 comments on commit 1a4aad5

Please sign in to comment.