mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-02-01 06:05:46 +00:00
fix: details for new stories
This commit is contained in:
parent
c98ee6c040
commit
fb6778f70a
@ -13,6 +13,6 @@ export default meta
|
|||||||
|
|
||||||
type AddCardStory = StoryObj<typeof AddCard>
|
type AddCardStory = StoryObj<typeof AddCard>
|
||||||
|
|
||||||
export const Page: AddCardStory = {
|
export const Default: AddCardStory = {
|
||||||
args: {},
|
args: {},
|
||||||
}
|
}
|
||||||
|
@ -2,17 +2,21 @@ import type { Meta, StoryObj } from '@storybook/react'
|
|||||||
|
|
||||||
import BasicInfoCard from './BasicInfoCard'
|
import BasicInfoCard from './BasicInfoCard'
|
||||||
|
|
||||||
const meta: Meta = {
|
const meta = {
|
||||||
title: 'Dashboard/BasicInfoCard',
|
title: 'Dashboard/BasicInfoCard',
|
||||||
component: BasicInfoCard,
|
component: BasicInfoCard,
|
||||||
decorators: [],
|
parameters: {
|
||||||
|
layout: 'centered',
|
||||||
|
},
|
||||||
tags: ['autodocs'],
|
tags: ['autodocs'],
|
||||||
}
|
} satisfies Meta<typeof BasicInfoCard>
|
||||||
|
|
||||||
export default meta
|
export default meta
|
||||||
|
type Story = StoryObj<typeof meta>
|
||||||
|
|
||||||
type BasicInfoCardStory = StoryObj<typeof BasicInfoCard>
|
export const Default: Story = {
|
||||||
|
args: {
|
||||||
export const Page: BasicInfoCardStory = {
|
title: 'Default',
|
||||||
args: {},
|
value: '10',
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
@ -2,17 +2,18 @@ import type { Meta, StoryObj } from '@storybook/react'
|
|||||||
|
|
||||||
import Dashboard from './Dashboard'
|
import Dashboard from './Dashboard'
|
||||||
|
|
||||||
const meta: Meta = {
|
const meta = {
|
||||||
title: 'Pages/Dashboard',
|
title: 'Pages/Dashboard',
|
||||||
component: Dashboard,
|
component: Dashboard,
|
||||||
decorators: [],
|
parameters: {
|
||||||
|
layout: 'centered',
|
||||||
|
},
|
||||||
tags: ['autodocs'],
|
tags: ['autodocs'],
|
||||||
}
|
} satisfies Meta<typeof Dashboard>
|
||||||
|
|
||||||
export default meta
|
export default meta
|
||||||
|
type Story = StoryObj<typeof meta>
|
||||||
|
|
||||||
type DashboardStory = StoryObj<typeof Dashboard>
|
export const Page: Story = {
|
||||||
|
|
||||||
export const Page: DashboardStory = {
|
|
||||||
args: {},
|
args: {},
|
||||||
}
|
}
|
||||||
|
@ -2,17 +2,20 @@ import type { Meta, StoryObj } from '@storybook/react'
|
|||||||
|
|
||||||
import DashboardCardWrapper from './DashboardCardWrapper'
|
import DashboardCardWrapper from './DashboardCardWrapper'
|
||||||
|
|
||||||
const meta: Meta = {
|
const meta = {
|
||||||
title: 'Dashboard/DashboardCardWrapper',
|
title: 'Dashboard/DashboardCardWrapper',
|
||||||
component: DashboardCardWrapper,
|
component: DashboardCardWrapper,
|
||||||
decorators: [],
|
parameters: {
|
||||||
|
layout: 'centered',
|
||||||
|
},
|
||||||
tags: ['autodocs'],
|
tags: ['autodocs'],
|
||||||
}
|
} satisfies Meta<typeof DashboardCardWrapper>
|
||||||
|
|
||||||
export default meta
|
export default meta
|
||||||
|
type Story = StoryObj<typeof meta>
|
||||||
|
|
||||||
type DashboardCardWrapperStory = StoryObj<typeof DashboardCardWrapper>
|
export const Default: Story = {
|
||||||
|
args: {
|
||||||
export const Page: DashboardCardWrapperStory = {
|
children: 'Default',
|
||||||
args: {},
|
},
|
||||||
}
|
}
|
||||||
|
@ -2,17 +2,18 @@ import type { Meta, StoryObj } from '@storybook/react'
|
|||||||
|
|
||||||
import SyncStatusCard from './SyncStatusCard'
|
import SyncStatusCard from './SyncStatusCard'
|
||||||
|
|
||||||
const meta: Meta = {
|
const meta = {
|
||||||
title: 'Dashboard/SyncStatusCard',
|
title: 'Dashboard/SyncStatusCard',
|
||||||
component: SyncStatusCard,
|
component: SyncStatusCard,
|
||||||
decorators: [],
|
parameters: {
|
||||||
|
layout: 'centered',
|
||||||
|
},
|
||||||
tags: ['autodocs'],
|
tags: ['autodocs'],
|
||||||
}
|
} satisfies Meta<typeof SyncStatusCard>
|
||||||
|
|
||||||
export default meta
|
export default meta
|
||||||
|
type Story = StoryObj<typeof meta>
|
||||||
|
|
||||||
type SyncStatusCardStory = StoryObj<typeof SyncStatusCard>
|
export const Default: Story = {
|
||||||
|
|
||||||
export const Page: SyncStatusCardStory = {
|
|
||||||
args: {},
|
args: {},
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user