Skip to content

Commit

Permalink
Wrap CryptoFiatAmountTile in a CardUi4
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon-edge committed Jan 10, 2024
1 parent 437f3b4 commit 217ba2c
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/components/tiles/CryptoFiatAmountTile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { useSelector } from '../../types/reactRedux'
import { DECIMAL_PRECISION } from '../../util/utils'
import { FiatText } from '../text/FiatText'
import { EdgeText } from '../themed/EdgeText'
import { CardUi4 } from '../ui4/CardUi4'
import { RowActionIcon, RowUi4 } from '../ui4/RowUi4'

// TODO: Check contentPadding
Expand Down Expand Up @@ -43,11 +44,13 @@ export const CryptoFiatAmountTile = (props: Props) => {
const absCryptoAmount = abs(nativeCryptoAmount)

return (
<RowUi4 rightButtonType={type} title={title} onPress={onPress}>
<EdgeText>
{cryptoAmountText}
(<FiatText wallet={wallet} tokenId={tokenId} nativeCryptoAmount={absCryptoAmount} />)
</EdgeText>
</RowUi4>
<CardUi4>
<RowUi4 rightButtonType={type} title={title} onPress={onPress}>
<EdgeText>
{cryptoAmountText}
(<FiatText wallet={wallet} tokenId={tokenId} nativeCryptoAmount={absCryptoAmount} />)
</EdgeText>
</RowUi4>
</CardUi4>
)
}

0 comments on commit 217ba2c

Please sign in to comment.