diff --git a/src/pages/PairDevice/ConnectViaIP/PortInput.tsx b/src/pages/PairDevice/ConnectViaIP/PortInput.tsx new file mode 100644 index 00000000..ea901a75 --- /dev/null +++ b/src/pages/PairDevice/ConnectViaIP/PortInput.tsx @@ -0,0 +1,31 @@ +import { Input, Text } from '@status-im/components' +import { useDispatch } from 'react-redux' +import { YStack } from 'tamagui' + +type PortInputProps = { + portType: string + port: string +} + +const PortInput = ({ portType, port }: PortInputProps) => { + const dispatch = useDispatch() + + const onPortChange = (value: string) => { + if (isNaN(Number(value))) { + return + } + + dispatch({ type: 'pairDevice/setPort', payload: { value, portType } }) + } + + return ( + + + {portType} Port + + + + ) +} + +export default PortInput