mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-01-22 09:19:28 +00:00
fix: change handler for connect via IP button
This commit is contained in:
parent
adbf3b59e2
commit
7ef5e5e688
@ -2,7 +2,6 @@ import { NodeIcon } from '@status-im/icons'
|
|||||||
import { Separator, XStack, YStack } from 'tamagui'
|
import { Separator, XStack, YStack } from 'tamagui'
|
||||||
import { useState } from 'react'
|
import { useState } from 'react'
|
||||||
import { Button, Text } from '@status-im/components'
|
import { Button, Text } from '@status-im/components'
|
||||||
import { useNavigate } from 'react-router-dom'
|
|
||||||
|
|
||||||
import PageWrapperShadow from '../../components/PageWrappers/PageWrapperShadow'
|
import PageWrapperShadow from '../../components/PageWrappers/PageWrapperShadow'
|
||||||
import SyncStatus from './SyncStatus'
|
import SyncStatus from './SyncStatus'
|
||||||
@ -15,7 +14,6 @@ import Icon from '../../components/General/Icon'
|
|||||||
|
|
||||||
const PairDevice = () => {
|
const PairDevice = () => {
|
||||||
const [isAwaitingPairing, setIsAwaitingPairing] = useState(false)
|
const [isAwaitingPairing, setIsAwaitingPairing] = useState(false)
|
||||||
const navigate = useNavigate()
|
|
||||||
const [isConnectingViaIp, setIsConnectingViaIp] = useState(false)
|
const [isConnectingViaIp, setIsConnectingViaIp] = useState(false)
|
||||||
const isPaired = false
|
const isPaired = false
|
||||||
const isPairing = false
|
const isPairing = false
|
||||||
@ -25,7 +23,7 @@ const PairDevice = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const connectViaIpHandler = () => {
|
const connectViaIpHandler = () => {
|
||||||
navigate('/connect-device')
|
setIsConnectingViaIp(true)
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user