-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
26 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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} /> |