feat: rename connect existing instance to connect via ip
This commit is contained in:
parent
05ba52e3bf
commit
58d5aa449f
|
@ -1,17 +1,17 @@
|
|||
import type { Meta, StoryObj } from '@storybook/react'
|
||||
import { withRouter } from 'storybook-addon-react-router-v6'
|
||||
|
||||
import ConnectExistingInstance from './ConnectExistingInstance'
|
||||
import ConnectViaIP from './ConnectViaIP'
|
||||
|
||||
const meta = {
|
||||
title: 'Connect-Device/ConnectExistingInstance',
|
||||
component: ConnectExistingInstance,
|
||||
title: 'Connect-Device/ConnectViaIP',
|
||||
component: ConnectViaIP,
|
||||
parameters: {
|
||||
layout: 'centered',
|
||||
},
|
||||
tags: ['autodocs'],
|
||||
decorators: [withRouter],
|
||||
} satisfies Meta<typeof ConnectExistingInstance>
|
||||
} satisfies Meta<typeof ConnectViaIP>
|
||||
|
||||
export default meta
|
||||
type Story = StoryObj<typeof meta>
|
|
@ -6,7 +6,7 @@ import { SettingsIcon, ClearIcon } from '@status-im/icons'
|
|||
import ClientAddressRow from './ClientAddressRow'
|
||||
import BeaconAddress from './BeaconAddress'
|
||||
|
||||
const ConnectExistingInstance = () => {
|
||||
const ConnectViaIP = () => {
|
||||
const [encryptedPassword, setEncryptedPassword] = useState('')
|
||||
|
||||
const changeEncryptedPasswordHandler = (value: string) => {
|
||||
|
@ -48,4 +48,4 @@ const ConnectExistingInstance = () => {
|
|||
)
|
||||
}
|
||||
|
||||
export default ConnectExistingInstance
|
||||
export default ConnectViaIP
|
|
@ -10,7 +10,7 @@ import PairedSuccessfully from './PairedSuccessfully'
|
|||
import CreateAvatar from '../../components/General/CreateAvatar/CreateAvatar'
|
||||
import GenerateId from './GenerateId'
|
||||
import Header from '../../components/General/Header'
|
||||
import ConnectExistingInstance from './ConnectExistingInstance'
|
||||
import ConnectViaIP from './ConnectViaIP'
|
||||
|
||||
const PairDevice = () => {
|
||||
const [isAwaitingPairing, setIsAwaitingPairing] = useState(false)
|
||||
|
@ -35,7 +35,7 @@ const PairDevice = () => {
|
|||
subtitle="Pair your existing device to the Nimbus Node Manager"
|
||||
/>
|
||||
{isConnectingViaIp ? (
|
||||
<ConnectExistingInstance />
|
||||
<ConnectViaIP />
|
||||
) : (
|
||||
<>
|
||||
{isPaired ? (
|
||||
|
|
Loading…
Reference in New Issue