fix(device-health-check): rename to onboarding

This commit is contained in:
RadoslavDimchev 2024-03-20 07:55:13 +02:00 committed by Radoslav Dimchev
parent 6ff9a87694
commit 37a28e3766
5 changed files with 27 additions and 25 deletions

View File

@ -8,7 +8,7 @@ import { useSelector } from 'react-redux'
import config from '../tamagui.config'
import LandingPage from './pages/LandingPage/LandingPage'
import DeviceHealthCheck from './pages/DeviceHealthCheck/DeviceHealthCheck'
import DeviceHealthCheckOnboarding from './pages/DeviceHealthCheckOnboarding/DeviceHealthCheckOnboarding'
import { RootState } from './redux/store'
import DeviceSyncStatus from './pages/DeviceSyncStatus/DeviceSyncStatus'
import PairDevice from './pages/PairDevice/PairDevice'
@ -58,7 +58,7 @@ const router = createBrowserRouter([
},
{
path: '/device-health-check-onboarding',
element: <DeviceHealthCheck />,
element: <DeviceHealthCheckOnboarding />,
},
{
path: '/device-health-check',

View File

@ -11,7 +11,7 @@ const meta = {
export default meta
type Story = StoryObj<typeof meta>
export const WelcomeTitles: Story = {
export const Welcome: Story = {
args: {
title:
'Welcome, John. This is your complete access to a truly decentralized Web 3.0',
@ -21,7 +21,7 @@ export const WelcomeTitles: Story = {
},
}
export const DeviceHealthCheckTitles: Story = {
export const DeviceHealthCheckOnboarding: Story = {
args: {
title: 'Device Health Check',
subtitle: 'Configure your device to start Staking on Nimbus',

View File

@ -1,19 +0,0 @@
import type { Meta, StoryObj } from '@storybook/react'
import DeviceHealthCheck from './DeviceHealthCheck'
import { withRouter } from 'storybook-addon-react-router-v6'
const meta: Meta = {
title: 'Pages/DeviceHealthCheck',
component: DeviceHealthCheck,
decorators: [withRouter],
tags: ['autodocs'],
}
export default meta
type DeviceHealthCheckStory = StoryObj<typeof DeviceHealthCheck>
export const Page: DeviceHealthCheckStory = {
args: {},
}

View File

@ -0,0 +1,21 @@
import type { Meta, StoryObj } from '@storybook/react'
import DeviceHealthCheckOnboarding from './DeviceHealthCheckOnboarding'
import { withRouter } from 'storybook-addon-react-router-v6'
const meta: Meta = {
title: 'Pages/DeviceHealthCheckOnboarding',
component: DeviceHealthCheckOnboarding,
decorators: [withRouter],
tags: ['autodocs'],
}
export default meta
type DeviceHealthCheckOnboardingStory = StoryObj<
typeof DeviceHealthCheckOnboarding
>
export const Page: DeviceHealthCheckOnboardingStory = {
args: {},
}

View File

@ -16,7 +16,7 @@ import { RootState } from '../../redux/store'
import { useWindowSize } from '../../hooks/useWindowSize'
import { useNavigate } from 'react-router-dom'
const DeviceHealthCheck = () => {
const DeviceHealthCheckOnboarding = () => {
const navigate = useNavigate()
const deviceHealthState = useSelector(
(state: RootState) => state.deviceHealth,
@ -98,4 +98,4 @@ const DeviceHealthCheck = () => {
)
}
export default DeviceHealthCheck
export default DeviceHealthCheckOnboarding