From 8ffdf6f4f878cce51407edcf2c5aecd1bb16d513 Mon Sep 17 00:00:00 2001 From: DC Date: Wed, 22 May 2024 15:29:15 -0700 Subject: [PATCH] mobile: currency switcher centring, hitbox --- .../src/view/shared/AmountInput.tsx | 25 ++++++++++++------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/apps/daimo-mobile/src/view/shared/AmountInput.tsx b/apps/daimo-mobile/src/view/shared/AmountInput.tsx index 9cb997199..69d243646 100644 --- a/apps/daimo-mobile/src/view/shared/AmountInput.tsx +++ b/apps/daimo-mobile/src/view/shared/AmountInput.tsx @@ -199,6 +199,7 @@ function AmountInput({ onTouchEnd={focus} /> + ); @@ -217,14 +218,14 @@ function CurrencyPicker({ }; return ( - + ( - - + renderButton={() => ( + + )} renderItem={(c) => ( @@ -233,13 +234,13 @@ function CurrencyPicker({ )} showsVerticalScrollIndicator - dropdownStyle={styles.curDropdownStyle} + dropdownStyle={styles.currencyDropdown} /> ); } -function CurrencyPickButton({ currency }: { currency: CurrencyExchangeRate }) { +function CurrencyPickButton() { return (