diff --git a/suite-native/transactions/src/components/TransactionDetail/TransactionDetailHeader.tsx b/suite-native/transactions/src/components/TransactionDetail/TransactionDetailHeader.tsx index 592cd53c23ca..dc9277a204f1 100644 --- a/suite-native/transactions/src/components/TransactionDetail/TransactionDetailHeader.tsx +++ b/suite-native/transactions/src/components/TransactionDetail/TransactionDetailHeader.tsx @@ -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: { @@ -105,7 +105,7 @@ export const TransactionDetailHeader = ({ color="textDefault" numberOfLines={1} adjustsFontSizeToFit - style={applyStyle(failedTxnTxtStyle, { isFailedTx })} + style={applyStyle(failedTxStyle, { isFailedTx })} /> ) : ( )} @@ -134,7 +134,7 @@ export const TransactionDetailHeader = ({ historicRate={historicRate} color="textSubdued" useHistoricRate - style={applyStyle(failedTxnTxtStyle, { isFailedTx })} + style={applyStyle(failedTxStyle, { isFailedTx })} /> ) : ( )} diff --git a/suite-native/transactions/src/components/TransactionsList/TokenTransferListItem.tsx b/suite-native/transactions/src/components/TransactionsList/TokenTransferListItem.tsx index dabdafd16931..d70084253e0d 100644 --- a/suite-native/transactions/src/components/TransactionsList/TokenTransferListItem.tsx +++ b/suite-native/transactions/src/components/TransactionsList/TokenTransferListItem.tsx @@ -21,7 +21,7 @@ type TokenTransferListItemProps = { isLast?: boolean; }; -const failedTxnTxtStyle = prepareNativeStyle<{ isFailedTx: boolean }>((_, { isFailedTx }) => ({ +const failedTxStyle = prepareNativeStyle<{ isFailedTx: boolean }>((_, { isFailedTx }) => ({ extend: { condition: isFailedTx, style: { @@ -67,7 +67,7 @@ export const TokenTransferListItemValues = ({ historicRate={historicRate} useHistoricRate isForcedDiscreetMode={isPhishingTransaction} - style={applyStyle(failedTxnTxtStyle, { isFailedTx })} + style={applyStyle(failedTxStyle, { isFailedTx })} /> ((_, { isFailedTx }) => ({ +const failedTxStyle = prepareNativeStyle<{ isFailedTx: boolean }>((_, { isFailedTx }) => ({ extend: { condition: isFailedTx, style: { @@ -76,7 +76,7 @@ export const TransactionListItemValues = ({ historicRate={historicRate} useHistoricRate isForcedDiscreetMode={isPhishingTransaction} - style={applyStyle(failedTxnTxtStyle, { isFailedTx })} + style={applyStyle(failedTxStyle, { isFailedTx })} /> )}