* docs: add jsdoc * feat: change enums to as const objects * chore(test): add themeColors.test.ts * fix: fix tests and bugs with strings.ts util * fix: path alias imports and tsconfig file bug * fix: remove --max-warnings 0
38 lines
826 B
TypeScript
38 lines
826 B
TypeScript
/* eslint-disable jsdoc/require-jsdoc */
|
|
import ScheduleListItem from '@views/components/common/ScheduleListItem/ScheduleListItem';
|
|
import React from 'react';
|
|
|
|
export default {
|
|
title: 'Components/Common/ScheduleListItem',
|
|
component: ScheduleListItem,
|
|
parameters: {
|
|
layout: 'centered',
|
|
tags: ['autodocs'],
|
|
},
|
|
argTypes: {
|
|
active: { control: 'boolean' },
|
|
name: { control: 'text' },
|
|
},
|
|
};
|
|
|
|
export const Default = args => <ScheduleListItem {...args} />;
|
|
|
|
Default.args = {
|
|
name: 'My Schedule',
|
|
active: true,
|
|
};
|
|
|
|
export const Active = args => <ScheduleListItem {...args} />;
|
|
|
|
Active.args = {
|
|
name: 'My Schedule',
|
|
active: true,
|
|
};
|
|
|
|
export const Inactive = args => <ScheduleListItem {...args} />;
|
|
|
|
Inactive.args = {
|
|
name: 'My Schedule',
|
|
active: false,
|
|
};
|