Skip to content

Commit

Permalink
Update stories
Browse files Browse the repository at this point in the history
  • Loading branch information
campb303 committed Apr 14, 2021
1 parent 4a1388e commit be46fb2
Showing 1 changed file with 26 additions and 11 deletions.
37 changes: 26 additions & 11 deletions src/components/Assignment/Assignment.stories.mdx
Original file line number Diff line number Diff line change
@@ -1,17 +1,32 @@
import { Meta, Story, Canvas, ArgsTable } from '@storybook/addon-docs/blocks';
import Assignment from './Assignment';

import { Meta, Story, Canvas } from '@storybook/addon-docs/blocks';
import Assignment from './Assignment';
<Meta
title="Components/Assignment"
component={Assignment}
argTypes={{
datetime: {
control: {
type: "date"
}
}
}}
/>

Renders a string representation of an assignment with a relative time.
Renders a formatted string showing an Item's assignment action.

<Meta title="Components/Assignement" component={Assignment} />
export const Template = (args) => <Assignment {...args} />

<Canvas>
<Story name="Default" args={{
datetime: "2020-06-23T13:27:00-0400",
by: "campb303",
to: "campb303"
}}>
{args => <Assignment {...args} />}
<Story name="Defailt"
args={{
datetime: "2020-06-23T13:27:00-0400",
by: "campb303",
to: "campb303"
}}
>
{args => <Assignment {...args} />}
</Story>
</Canvas>
</Canvas>

<ArgsTable of={Assignment} />

0 comments on commit be46fb2

Please sign in to comment.