Skip to content

Commit

Permalink
fixup! feat(suite-native): update UI for failed txns
Browse files Browse the repository at this point in the history
  • Loading branch information
vytick committed Oct 29, 2024
1 parent 9ef056b commit d773327
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ type TransactionDetailHeaderProps = {
const ICON_SIZE = 56;
const ICON_SPINNER_WIDTH = 3;

const failedTxnTxtStyle = prepareNativeStyle<{ isFailedTx: boolean }>((_, { isFailedTx }) => ({
const failedTxStyle = prepareNativeStyle<{ isFailedTx: boolean }>((_, { isFailedTx }) => ({
extend: {
condition: isFailedTx,
style: {
Expand Down Expand Up @@ -105,7 +105,7 @@ export const TransactionDetailHeader = ({
color="textDefault"
numberOfLines={1}
adjustsFontSizeToFit
style={applyStyle(failedTxnTxtStyle, { isFailedTx })}
style={applyStyle(failedTxStyle, { isFailedTx })}
/>
) : (
<CryptoAmountFormatter
Expand All @@ -116,7 +116,7 @@ export const TransactionDetailHeader = ({
color="textDefault"
numberOfLines={1}
adjustsFontSizeToFit
style={applyStyle(failedTxnTxtStyle, { isFailedTx })}
style={applyStyle(failedTxStyle, { isFailedTx })}
/>
)}
</Box>
Expand All @@ -134,7 +134,7 @@ export const TransactionDetailHeader = ({
historicRate={historicRate}
color="textSubdued"
useHistoricRate
style={applyStyle(failedTxnTxtStyle, { isFailedTx })}
style={applyStyle(failedTxStyle, { isFailedTx })}
/>
) : (
<CryptoToFiatAmountFormatter
Expand All @@ -143,7 +143,7 @@ export const TransactionDetailHeader = ({
historicRate={historicRate}
color="textSubdued"
useHistoricRate
style={applyStyle(failedTxnTxtStyle, { isFailedTx })}
style={applyStyle(failedTxStyle, { isFailedTx })}
/>
)}
</Box>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type TokenTransferListItemProps = {
isLast?: boolean;
};

const failedTxnTxtStyle = prepareNativeStyle<{ isFailedTx: boolean }>((_, { isFailedTx }) => ({
const failedTxStyle = prepareNativeStyle<{ isFailedTx: boolean }>((_, { isFailedTx }) => ({
extend: {
condition: isFailedTx,
style: {
Expand Down Expand Up @@ -67,7 +67,7 @@ export const TokenTransferListItemValues = ({
historicRate={historicRate}
useHistoricRate
isForcedDiscreetMode={isPhishingTransaction}
style={applyStyle(failedTxnTxtStyle, { isFailedTx })}
style={applyStyle(failedTxStyle, { isFailedTx })}
/>
<TokenAmountFormatter
value={tokenTransfer.amount}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ type TransactionListItemProps = {
isLast?: boolean;
};

const failedTxnTxtStyle = prepareNativeStyle<{ isFailedTx: boolean }>((_, { isFailedTx }) => ({
const failedTxStyle = prepareNativeStyle<{ isFailedTx: boolean }>((_, { isFailedTx }) => ({
extend: {
condition: isFailedTx,
style: {
Expand Down Expand Up @@ -76,7 +76,7 @@ export const TransactionListItemValues = ({
historicRate={historicRate}
useHistoricRate
isForcedDiscreetMode={isPhishingTransaction}
style={applyStyle(failedTxnTxtStyle, { isFailedTx })}
style={applyStyle(failedTxStyle, { isFailedTx })}
/>
</Box>
)}
Expand Down

0 comments on commit d773327

Please sign in to comment.