From 5e780d9dfb92b0f79dabc40eb0f98b533fcd0b50 Mon Sep 17 00:00:00 2001 From: Myroslav Sviderok Date: Thu, 19 Dec 2024 15:32:37 +0200 Subject: [PATCH] more fixes --- src/components/TokenEnterAmount.tsx | 6 +++--- src/navigator/Navigator.tsx | 25 +++++++++++++++---------- 2 files changed, 18 insertions(+), 13 deletions(-) diff --git a/src/components/TokenEnterAmount.tsx b/src/components/TokenEnterAmount.tsx index 677708ac69a..c83f37f14ce 100644 --- a/src/components/TokenEnterAmount.tsx +++ b/src/components/TokenEnterAmount.tsx @@ -325,9 +325,9 @@ export default function TokenEnterAmount({ inputStyle?: StyleProp autoFocus?: boolean testID?: string - onInputChange?: (value: string) => void - toggleAmountType?: () => void - onOpenTokenPicker?: () => void + onInputChange?(value: string): void + toggleAmountType?(): void + onOpenTokenPicker?(): void }) { const { t } = useTranslation() /** diff --git a/src/navigator/Navigator.tsx b/src/navigator/Navigator.tsx index c30042b4c30..ac36f1fe08e 100644 --- a/src/navigator/Navigator.tsx +++ b/src/navigator/Navigator.tsx @@ -560,16 +560,21 @@ const earnScreens = (Navigator: typeof Stack) => ( ) -const showNewEnterAmountForSwap = getFeatureGate(StatsigFeatureGates.SHOW_NEW_ENTER_AMOUNT_FOR_SWAP) -const swapScreens = (Navigator: typeof Stack) => ( - <> - - -) +const swapScreens = (Navigator: typeof Stack) => { + const showNewEnterAmountForSwap = getFeatureGate( + StatsigFeatureGates.SHOW_NEW_ENTER_AMOUNT_FOR_SWAP + ) + + return ( + <> + + + ) +} const nftScreens = (Navigator: typeof Stack) => ( <>