feat: rename connect existing instance to connect via ip

This commit is contained in:
RadoslavDimchev 2023-12-20 08:04:35 +02:00
parent 05ba52e3bf
commit 58d5aa449f
3 changed files with 8 additions and 8 deletions

View File

@ -1,17 +1,17 @@
import type { Meta, StoryObj } from '@storybook/react' import type { Meta, StoryObj } from '@storybook/react'
import { withRouter } from 'storybook-addon-react-router-v6' import { withRouter } from 'storybook-addon-react-router-v6'
import ConnectExistingInstance from './ConnectExistingInstance' import ConnectViaIP from './ConnectViaIP'
const meta = { const meta = {
title: 'Connect-Device/ConnectExistingInstance', title: 'Connect-Device/ConnectViaIP',
component: ConnectExistingInstance, component: ConnectViaIP,
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },
tags: ['autodocs'], tags: ['autodocs'],
decorators: [withRouter], decorators: [withRouter],
} satisfies Meta<typeof ConnectExistingInstance> } satisfies Meta<typeof ConnectViaIP>
export default meta export default meta
type Story = StoryObj<typeof meta> type Story = StoryObj<typeof meta>

View File

@ -6,7 +6,7 @@ import { SettingsIcon, ClearIcon } from '@status-im/icons'
import ClientAddressRow from './ClientAddressRow' import ClientAddressRow from './ClientAddressRow'
import BeaconAddress from './BeaconAddress' import BeaconAddress from './BeaconAddress'
const ConnectExistingInstance = () => { const ConnectViaIP = () => {
const [encryptedPassword, setEncryptedPassword] = useState('') const [encryptedPassword, setEncryptedPassword] = useState('')
const changeEncryptedPasswordHandler = (value: string) => { const changeEncryptedPasswordHandler = (value: string) => {
@ -48,4 +48,4 @@ const ConnectExistingInstance = () => {
) )
} }
export default ConnectExistingInstance export default ConnectViaIP

View File

@ -10,7 +10,7 @@ import PairedSuccessfully from './PairedSuccessfully'
import CreateAvatar from '../../components/General/CreateAvatar/CreateAvatar' import CreateAvatar from '../../components/General/CreateAvatar/CreateAvatar'
import GenerateId from './GenerateId' import GenerateId from './GenerateId'
import Header from '../../components/General/Header' import Header from '../../components/General/Header'
import ConnectExistingInstance from './ConnectExistingInstance' import ConnectViaIP from './ConnectViaIP'
const PairDevice = () => { const PairDevice = () => {
const [isAwaitingPairing, setIsAwaitingPairing] = useState(false) const [isAwaitingPairing, setIsAwaitingPairing] = useState(false)
@ -35,7 +35,7 @@ const PairDevice = () => {
subtitle="Pair your existing device to the Nimbus Node Manager" subtitle="Pair your existing device to the Nimbus Node Manager"
/> />
{isConnectingViaIp ? ( {isConnectingViaIp ? (
<ConnectExistingInstance /> <ConnectViaIP />
) : ( ) : (
<> <>
{isPaired ? ( {isPaired ? (