mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-02-03 23:24:20 +00:00
feat: add story for DeviceMemory
This commit is contained in:
parent
eb190933bb
commit
76be6b1310
29
src/components/DeviceMemory.stories.tsx
Normal file
29
src/components/DeviceMemory.stories.tsx
Normal file
@ -0,0 +1,29 @@
|
||||
import type { Meta, StoryObj } from '@storybook/react'
|
||||
|
||||
import DeviceMemory from './DeviceMemoryHealth'
|
||||
|
||||
const meta = {
|
||||
title: 'Device Health/DeviceMemory',
|
||||
component: DeviceMemory,
|
||||
parameters: {
|
||||
layout: 'centered',
|
||||
},
|
||||
tags: ['autodocs'],
|
||||
} satisfies Meta<typeof DeviceMemory>
|
||||
|
||||
export default meta
|
||||
type Story = StoryObj<typeof meta>
|
||||
|
||||
export const GoodStats: Story = {
|
||||
args: {
|
||||
currentMemory: [25, 31, 5, 14, 20],
|
||||
maxMemory: 64,
|
||||
},
|
||||
}
|
||||
|
||||
export const BadStats: Story = {
|
||||
args: {
|
||||
currentMemory: [25, 31, 5, 14, 80],
|
||||
maxMemory: 64,
|
||||
},
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user