fix: fiat payment design alignments#30581
Conversation
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
Tag selection rationale:
Performance Test Selection: |
|
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
Tag selection rationale:
Performance Test Selection: |
|
Description
This PR fixes two UI issues related to fiat payment method selection in the confirmation flow:
1. Hide PayAccountSelector when fiat payment method is selected
When a fiat payment method (
selectedFiatPaymentMethodId) is active, thePayAccountSelectorcomponent should not be rendered inCustomAmountInfo. The guard was added to both the keyboard-visible and result-ready states. Test coverage added to verify the new behavior.2. Fix dark mode icon color for fiat payment method row
PaymentMethodIconinPayWithFiatPaymentMethodRowwas receivingcolor={undefined}when not disabled, causing react-native-vector-icons to default to black — invisible in dark mode. Fixed by usingcolors.icon.defaultfrom the theme, which resolves to the correct color in both light and dark modes.Changes
custom-amount-info.tsx: Added!selectedFiatPaymentMethodIdguard toPayAccountSelectorrenderingcustom-amount-info.test.tsx: Added test for PayAccountSelector hidden when fiat payment method selectedpay-with-row.tsx: ChangedPaymentMethodIconcolor fromundefinedtocolors.icon.defaultRelated to
Recording and screenshots
After
fiat.design.alignments.mov
Note
Low Risk
Small confirmation UI guards and theme token for an icon; no auth, transaction, or payment logic changes.
Overview
When a fiat payment method is selected on the custom amount confirmation screen,
PayAccountSelectoris hidden so users are not prompted to pick a crypto pay account alongside fiat. The same guard applies in both the in-progress (keyboard) and post-Done layouts.The Pay with row for fiat methods now uses
colors.icon.defaultforPaymentMethodIconwhen enabled, fixing icons that looked wrong (e.g. black) in dark mode.Tests assert the account selector stays off when
selectedPaymentMethodIdis set.Reviewed by Cursor Bugbot for commit 4fa7eab. Bugbot is set up for automated code reviews on this repo. Configure here.