mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-02-04 07:34:06 +00:00
feat: add story for storage health
This commit is contained in:
parent
09cb916da7
commit
2f7f511886
29
src/components/DeviceStorageHealth.stories.tsx
Normal file
29
src/components/DeviceStorageHealth.stories.tsx
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
import type { Meta, StoryObj } from '@storybook/react'
|
||||||
|
|
||||||
|
import DeviceStorageHealth from './DeviceStorageHealth'
|
||||||
|
|
||||||
|
const meta = {
|
||||||
|
title: 'Device Health/DeviceStorageHealth',
|
||||||
|
component: DeviceStorageHealth,
|
||||||
|
parameters: {
|
||||||
|
layout: 'centered',
|
||||||
|
},
|
||||||
|
tags: ['autodocs'],
|
||||||
|
} satisfies Meta<typeof DeviceStorageHealth>
|
||||||
|
|
||||||
|
export default meta
|
||||||
|
type Story = StoryObj<typeof meta>
|
||||||
|
|
||||||
|
export const GoodStats: Story = {
|
||||||
|
args: {
|
||||||
|
storage: 10,
|
||||||
|
maxStorage: 20,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
export const BadStats: Story = {
|
||||||
|
args: {
|
||||||
|
storage: 20,
|
||||||
|
maxStorage: 20,
|
||||||
|
},
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user