feat: color palette for calendar (#118)
* feat: work on the palette * feat: palette basically done? * fix: lint warnings and errors * fix: minor fixes * fix: color patch colors and shades * fix: prettier issue * chore: use TS satisfies * chore: remove eslint-disable comment --------- Co-authored-by: doprz <52579214+doprz@users.noreply.github.com>
This commit is contained in:
19
src/stories/components/CourseCellColorPicker.stories.tsx
Normal file
19
src/stories/components/CourseCellColorPicker.stories.tsx
Normal file
@@ -0,0 +1,19 @@
|
||||
import type { Meta, StoryObj } from '@storybook/react';
|
||||
import CourseCellColorPicker from '@views/components/common/CourseCellColorPicker/CourseCellColorPicker';
|
||||
import React, { useState } from 'react';
|
||||
import type { ThemeColor } from 'src/shared/util/themeColors';
|
||||
|
||||
const meta = {
|
||||
title: 'Components/Common/CourseCellColorPicker',
|
||||
component: CourseCellColorPicker,
|
||||
} satisfies Meta<typeof CourseCellColorPicker>;
|
||||
|
||||
export default meta;
|
||||
type Story = StoryObj<typeof CourseCellColorPicker>;
|
||||
|
||||
export const Default: Story = {
|
||||
render: () => {
|
||||
const [selectedColor, setSelectedColor] = useState<ThemeColor | null>(null);
|
||||
return <CourseCellColorPicker setSelectedColor={setSelectedColor} />;
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user