fix: change handler for connect via IP button

This commit is contained in:
RadoslavDimchev 2023-12-18 22:03:17 +02:00
parent adbf3b59e2
commit 7ef5e5e688
1 changed files with 1 additions and 3 deletions

View File

@ -2,7 +2,6 @@ import { NodeIcon } from '@status-im/icons'
import { Separator, XStack, YStack } from 'tamagui'
import { useState } from 'react'
import { Button, Text } from '@status-im/components'
import { useNavigate } from 'react-router-dom'
import PageWrapperShadow from '../../components/PageWrappers/PageWrapperShadow'
import SyncStatus from './SyncStatus'
@ -15,7 +14,6 @@ import Icon from '../../components/General/Icon'
const PairDevice = () => {
const [isAwaitingPairing, setIsAwaitingPairing] = useState(false)
const navigate = useNavigate()
const [isConnectingViaIp, setIsConnectingViaIp] = useState(false)
const isPaired = false
const isPairing = false
@ -25,7 +23,7 @@ const PairDevice = () => {
}
const connectViaIpHandler = () => {
navigate('/connect-device')
setIsConnectingViaIp(true)
}
return (