Skip to content

Commit

Permalink
remove available section from withdraw details
Browse files Browse the repository at this point in the history
  • Loading branch information
sviderock committed Dec 16, 2024
1 parent 1dbd98e commit 95cf72b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 32 deletions.
7 changes: 0 additions & 7 deletions src/earn/EarnEnterAmount.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -501,13 +501,6 @@ describe('EarnEnterAmount', () => {

await waitFor(() => expect(getByText('earnFlow.enterAmount.continue')).not.toBeDisabled())

expect(getByTestId('EarnEnterAmount/Withdraw/Crypto')).toBeTruthy()
expect(getByTestId('EarnEnterAmount/Withdraw/Crypto')).toHaveTextContent('11.00 USDC')

expect(getByTestId('EarnEnterAmount/Withdraw/Fiat')).toBeTruthy()
expect(getByTestId('EarnEnterAmount/Withdraw/Fiat')).toBeTruthy()
expect(getByTestId('EarnEnterAmount/Withdraw/Fiat')).toHaveTextContent('₱14.63')

expect(getByTestId('EarnEnterAmount/Fees')).toBeTruthy()
expect(getByTestId('EarnEnterAmount/Fees')).toHaveTextContent('₱0.012')

Expand Down
25 changes: 0 additions & 25 deletions src/earn/EarnEnterAmount.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -529,31 +529,6 @@ function TransactionWithdrawDetails({

return (
<View style={styles.txDetailsContainer} testID="EnterAmountWithdrawInfoCard">
<View style={styles.txDetailsLineItem}>
<LabelWithInfo
label={t('earnFlow.enterAmount.available')}
testID="LabelWithInfo/AvailableLabel"
/>
<View style={styles.txDetailsValue}>
<TokenDisplay
tokenId={pool.dataProps.depositTokenId}
testID="EarnEnterAmount/Withdraw/Fiat"
amount={balanceInInputToken}
showLocalAmount={true}
style={styles.txDetailsValueText}
/>
<Text style={[styles.txDetailsValueText, styles.gray4]}>
{'('}
<TokenDisplay
testID="EarnEnterAmount/Withdraw/Crypto"
tokenId={pool.dataProps.depositTokenId}
amount={balanceInInputToken}
showLocalAmount={false}
/>
{')'}
</Text>
</View>
</View>
{pool.dataProps.withdrawalIncludesClaim &&
rewardsPositions.map((position, index) => (
<View key={index} style={styles.txDetailsLineItem}>
Expand Down

0 comments on commit 95cf72b

Please sign in to comment.