fix(device-health-check): rename to onboarding
This commit is contained in:
parent
6ff9a87694
commit
37a28e3766
|
@ -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',
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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: {},
|
||||
}
|
|
@ -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: {},
|
||||
}
|
|
@ -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
|
Loading…
Reference in New Issue