From 58d5aa449fe35173f23e366eb4757bd38747b514 Mon Sep 17 00:00:00 2001 From: RadoslavDimchev Date: Wed, 20 Dec 2023 08:04:35 +0200 Subject: [PATCH] feat: rename connect existing instance to connect via ip --- ...stingInctance.stories.tsx => ConnectViaIP.stories.tsx} | 8 ++++---- .../{ConnectExistingInstance.tsx => ConnectViaIP.tsx} | 4 ++-- src/pages/PairDevice/PairDevice.tsx | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) rename src/pages/PairDevice/{ConnectExistingInctance.stories.tsx => ConnectViaIP.stories.tsx} (61%) rename src/pages/PairDevice/{ConnectExistingInstance.tsx => ConnectViaIP.tsx} (94%) diff --git a/src/pages/PairDevice/ConnectExistingInctance.stories.tsx b/src/pages/PairDevice/ConnectViaIP.stories.tsx similarity index 61% rename from src/pages/PairDevice/ConnectExistingInctance.stories.tsx rename to src/pages/PairDevice/ConnectViaIP.stories.tsx index 3f8d2b64..4a8e306d 100644 --- a/src/pages/PairDevice/ConnectExistingInctance.stories.tsx +++ b/src/pages/PairDevice/ConnectViaIP.stories.tsx @@ -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 +} satisfies Meta export default meta type Story = StoryObj diff --git a/src/pages/PairDevice/ConnectExistingInstance.tsx b/src/pages/PairDevice/ConnectViaIP.tsx similarity index 94% rename from src/pages/PairDevice/ConnectExistingInstance.tsx rename to src/pages/PairDevice/ConnectViaIP.tsx index 58b44246..936f2436 100644 --- a/src/pages/PairDevice/ConnectExistingInstance.tsx +++ b/src/pages/PairDevice/ConnectViaIP.tsx @@ -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 diff --git a/src/pages/PairDevice/PairDevice.tsx b/src/pages/PairDevice/PairDevice.tsx index 6f108c95..947ca24e 100644 --- a/src/pages/PairDevice/PairDevice.tsx +++ b/src/pages/PairDevice/PairDevice.tsx @@ -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 ? ( - + ) : ( <> {isPaired ? (