From 5edc963de4fb30f668a7810471fea4988666486d Mon Sep 17 00:00:00 2001 From: SorinC6 Date: Tue, 10 Oct 2023 13:42:49 +0300 Subject: [PATCH] remove pressable --- .../CreateOrder/EditLimitPrice.tsx | 38 +++++++------------ 1 file changed, 14 insertions(+), 24 deletions(-) diff --git a/apps/wallet-mobile/src/features/Swap/useCases/StartSwapScreen/CreateOrder/EditLimitPrice.tsx b/apps/wallet-mobile/src/features/Swap/useCases/StartSwapScreen/CreateOrder/EditLimitPrice.tsx index cc5ccbcc49..74ae20f445 100644 --- a/apps/wallet-mobile/src/features/Swap/useCases/StartSwapScreen/CreateOrder/EditLimitPrice.tsx +++ b/apps/wallet-mobile/src/features/Swap/useCases/StartSwapScreen/CreateOrder/EditLimitPrice.tsx @@ -1,7 +1,7 @@ /* eslint-disable react/jsx-newline */ import {useSwap} from '@yoroi/swap' import * as React from 'react' -import {Pressable, StyleSheet, Text, TextInput, View} from 'react-native' +import {StyleSheet, Text, TextInput, View} from 'react-native' import {useLanguage} from '../../../../../i18n' import {useSelectedWallet} from '../../../../../SelectedWallet' @@ -75,30 +75,20 @@ type AmountInputProps = { inputRef?: React.RefObject } const AmountInput = ({onChange, value, editable, inputRef}: AmountInputProps) => { - const amountInputRef = React.useRef(inputRef?.current ?? null) - - const focusInput = () => { - if (amountInputRef?.current) { - amountInputRef.current.focus() - } - } - return ( - - - + ) }