mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-02-04 07:34:06 +00:00
Add page story
This commit is contained in:
parent
f07c7629e0
commit
4b9f83f361
@ -5,7 +5,7 @@ import './App.css'
|
||||
import config from '../tamagui.config'
|
||||
import LandingPage from './components/LandingPage'
|
||||
import DeviceHealthCheck from './pages/DeviceHealthCheck/DeviceHealthCheck'
|
||||
import DeviceSyncStatus from './pages/DeviceHealthCheck/DeviceSyncStatus'
|
||||
import DeviceSyncStatus from './pages/DeviceSyncStatus/DeviceSyncStatus'
|
||||
|
||||
const router = createBrowserRouter([
|
||||
{
|
||||
|
26
src/components/DeviceSync.stories.tsx
Normal file
26
src/components/DeviceSync.stories.tsx
Normal file
@ -0,0 +1,26 @@
|
||||
import type { Meta, StoryObj } from '@storybook/react'
|
||||
|
||||
import DeviceSyncStatus from '../pages/DeviceSyncStatus/DeviceSyncStatus'
|
||||
|
||||
const meta = {
|
||||
title: 'General/DeviceSyncStatus',
|
||||
component: DeviceSyncStatus,
|
||||
parameters: {
|
||||
layout: 'centered',
|
||||
},
|
||||
tags: ['autodocs'],
|
||||
decorators: [
|
||||
Story => (
|
||||
<div style={{ height: '100%', width: '100%' }}>
|
||||
<Story />
|
||||
</div>
|
||||
),
|
||||
],
|
||||
} satisfies Meta<typeof DeviceSyncStatus>
|
||||
|
||||
export default meta
|
||||
type Story = StoryObj<typeof meta>
|
||||
|
||||
export const WithData: Story = {
|
||||
args: {},
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user