Skip to content

Commit

Permalink
chore(wallet-mobile): put back paired balance on tx summary
Browse files Browse the repository at this point in the history
  • Loading branch information
stackchain committed May 7, 2024
1 parent f963545 commit 8a4d8ec
Showing 1 changed file with 13 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {StyleSheet, TouchableOpacity, View} from 'react-native'

import {Icon, Spacer, Text, useModal} from '../../../../components'
import {AmountItem} from '../../../../components/AmountItem/AmountItem'
import {PairedBalance} from '../../../../components/PairedBalance/PairedBalance'
import {useTokenInfo} from '../../../../yoroi-wallets/hooks'
import {Quantities} from '../../../../yoroi-wallets/utils'
import {useSelectedWallet} from '../../../WalletManager/Context'
Expand Down Expand Up @@ -152,7 +153,13 @@ export const TransactionSummary = () => {
<>
<Spacer height={6} />

{/* <PairedBalance amount={calculation.ptTotalValueSpent} textStyle={styles.cardTextUSD} /> */}
<PairedBalance
amount={{
info: wallet.portfolioPrimaryTokenInfo,
quantity: BigInt(calculation.ptTotalValueSpent.quantity),
}}
textStyle={styles.pairedText}
/>
</>
)}
</View>
Expand Down Expand Up @@ -278,11 +285,11 @@ const useStyles = () => {
lineHeight: 22,
textAlign: 'right',
},
// cardTextUSD: {
// fontSize: 14,
// color: color.gray_cmin,
// opacity: 0.75,
// },
pairedText: {
fontSize: 14,
color: color.gray_cmin,
opacity: 0.75,
},
flexBetween: {
flexDirection: 'row',
justifyContent: 'space-between',
Expand Down

0 comments on commit 8a4d8ec

Please sign in to comment.