Skip to content

Commit

Permalink
more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sviderock committed Dec 19, 2024
1 parent 930a919 commit 5e780d9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 13 deletions.
6 changes: 3 additions & 3 deletions src/components/TokenEnterAmount.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -325,9 +325,9 @@ export default function TokenEnterAmount({
inputStyle?: StyleProp<TextStyle>
autoFocus?: boolean
testID?: string
onInputChange?: (value: string) => void
toggleAmountType?: () => void
onOpenTokenPicker?: () => void
onInputChange?(value: string): void
toggleAmountType?(): void
onOpenTokenPicker?(): void
}) {
const { t } = useTranslation()
/**
Expand Down
25 changes: 15 additions & 10 deletions src/navigator/Navigator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -560,16 +560,21 @@ const earnScreens = (Navigator: typeof Stack) => (
</>
)

const showNewEnterAmountForSwap = getFeatureGate(StatsigFeatureGates.SHOW_NEW_ENTER_AMOUNT_FOR_SWAP)
const swapScreens = (Navigator: typeof Stack) => (
<>
<Navigator.Screen
name={Screens.SwapScreenWithBack}
component={showNewEnterAmountForSwap ? SwapScreenV2 : SwapScreen}
options={noHeader}
/>
</>
)
const swapScreens = (Navigator: typeof Stack) => {
const showNewEnterAmountForSwap = getFeatureGate(
StatsigFeatureGates.SHOW_NEW_ENTER_AMOUNT_FOR_SWAP
)

return (
<>
<Navigator.Screen
name={Screens.SwapScreenWithBack}
component={showNewEnterAmountForSwap ? SwapScreenV2 : SwapScreen}
options={noHeader}
/>
</>
)
}

const nftScreens = (Navigator: typeof Stack) => (
<>
Expand Down

0 comments on commit 5e780d9

Please sign in to comment.