diff --git a/src/pages/ConnectDevicePage/ConnectDevicePage.stories.ts b/src/pages/ConnectDevicePage/ConnectDevicePage.stories.ts deleted file mode 100644 index 7e31953b..00000000 --- a/src/pages/ConnectDevicePage/ConnectDevicePage.stories.ts +++ /dev/null @@ -1,21 +0,0 @@ -import type { Meta, StoryObj } from '@storybook/react' - -import ConnectDevicePage from './ConnectDevicePage' -import { withRouter } from 'storybook-addon-react-router-v6' - -const meta = { - title: 'Connect-Device/ConnectDevicePage', - component: ConnectDevicePage, - parameters: { - layout: 'centered', - }, - tags: ['autodocs'], - decorators: [withRouter], -} satisfies Meta - -export default meta -type Story = StoryObj - -export const Page: Story = { - args: {}, -} diff --git a/src/pages/ConnectDevicePage/ConnectDevicePage.tsx b/src/pages/ConnectDevicePage/ConnectDevicePage.tsx deleted file mode 100644 index 789e0548..00000000 --- a/src/pages/ConnectDevicePage/ConnectDevicePage.tsx +++ /dev/null @@ -1,120 +0,0 @@ -import { useEffect, useState } from 'react' -import BreadcrumbBar from '../../components/General/BreadcrumbBar/BreadcrumbBar' -import { Button as StatusButton, Text, Avatar, Checkbox } from '@status-im/components' -import { Article, Label, Separator, Stack, XStack, YStack } from 'tamagui' -import PageWrapperShadow from '../../components/PageWrappers/PageWrapperShadow' -import Titles from '../../components/General/Titles' -import LabelInputField from '../../components/General/LabelInputField' -import Header from '../../components/General/Header' -import { NodeIcon } from '@status-im/icons' - -const ConnectDevicePage = () => { - const [autoConnectChecked, setAutoConnectChecked] = useState(false) - const [portChecked, setPortChecked] = useState(false) - const [windowWidth, setWindowWidth] = useState(window.innerWidth) - - useEffect(() => { - const handleResize = () => { - setWindowWidth(window.innerWidth) - } - window.addEventListener('resize', handleResize) - return () => window.removeEventListener('resize', handleResize) - }, []) - - const breakpoint = 768 - - const responsiveXStackStyle = { - width: '100%', - alignItems: 'center', - justifyContent: 'space-between', - flexDirection: windowWidth <= breakpoint ? 'column' : 'row', - flexWrap: windowWidth <= breakpoint ? 'wrap' : 'nowrap', - } - - const responsiveInputStyle = { - width: windowWidth <= breakpoint ? '100%' : '40%', - marginBottom: windowWidth <= breakpoint ? '1rem' : '0', - } - - return ( - } - rightImageSrc="./background-images/day-night-bg.png" - rightImageLogo={true} - > - -
-
- - - - - - - - - - - - - - - setPortChecked(v)} - /> - - - - - - - - - - Device Avatar - - - - - - - - - - - - - - - Settings - - - - setAutoConnectChecked(v)} - variant="outline" - /> - - - - - }>Connect Device -
- - - ) -} - -export default ConnectDevicePage