From dece80f2acb44c91291c343021da6269d3195b3d Mon Sep 17 00:00:00 2001 From: Hristo Nedelkov Date: Thu, 21 Sep 2023 11:57:05 +0300 Subject: [PATCH] Create UptimeChart.stories.tsx --- .../UptimeChart/UptimeChart.stories.tsx | 58 +++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 src/pages/Dashboard/UptimeChart/UptimeChart.stories.tsx diff --git a/src/pages/Dashboard/UptimeChart/UptimeChart.stories.tsx b/src/pages/Dashboard/UptimeChart/UptimeChart.stories.tsx new file mode 100644 index 00000000..0e63780c --- /dev/null +++ b/src/pages/Dashboard/UptimeChart/UptimeChart.stories.tsx @@ -0,0 +1,58 @@ +import type { Meta, StoryObj } from '@storybook/react' + +import UptimeChart from './UptimeChart' + +const meta = { + title: 'Dashboard/UptimeChart', + component: UptimeChart, + parameters: { + layout: 'centered', + }, + decorators: [ + Story => ( +
+ +
+ ), + ], + tags: ['autodocs'], +} satisfies Meta + +export default meta +type Story = StoryObj + +export const WithoutLabels: Story = { + args: { + data: [ + { + pv: 1, + pa: 1, + }, + { + pv: 0, + pa: 0, + }, + { + pv: 0, + pa: 0, + }, + { + pv: 0, + pa: 1, + }, + { + pv: 0, + pa: 0, + }, + { + pv: 1, + pa: 0, + }, + { + pv: 0, + pa: 1, + }, + ] + + }, +}