This commit is contained in:
knownotunknown
2024-02-17 14:27:32 -06:00
parent 2cffb794db
commit 8b2d07033c
2 changed files with 35 additions and 28 deletions

View File

@@ -1,19 +1,25 @@
// Calendar.stories.tsx
import React from 'react';
import Calendar from '@views/components/common/CalendarGrid/CalendarGrid';
import type { Meta, StoryObj } from '@storybook/react';
import { Meta, StoryObj } from '@storybook/react';
import CalendarGrid from 'src/views/components/common/CalendarGrid/CalendarGrid';
const meta = {
title: 'Components/Common/Calendar',
component: Calendar,
parameters: {
// Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/configure/story-layout
layout: 'centered',
title: 'Components/Common/CalendarGrid',
component: CalendarGrid,
parameters: {
layout: 'centered',
},
tags: ['autodocs'],
}
} satisfies Meta<typeof Calendar>;
argTypes: {
saturday: { control: 'text' },
sunday: { control: 'text' },
},
} satisfies Meta<typeof CalendarGrid>;
export default meta;
type Story = StoryObj<typeof meta>;
export const Default: Story = {};
export const Default: Story = {
args: {
saturday: true,
sunday: true,
},
};