Skip to content

Commit

Permalink
Update TimelineActionCard stories
Browse files Browse the repository at this point in the history
  • Loading branch information
campb303 committed Apr 19, 2021
1 parent 5c69e11 commit 1c0d212
Showing 1 changed file with 45 additions and 24 deletions.
69 changes: 45 additions & 24 deletions src/components/TimelineActionCard/TimelineActionCard.stories.mdx
Original file line number Diff line number Diff line change
@@ -1,41 +1,62 @@
import { Meta, Story, Canvas } from '@storybook/addon-docs/blocks';
import { Meta, Story, Canvas, ArgsTable } from '@storybook/addon-docs/blocks';
import TimelineActionCard from "./TimelineActionCard";

<Meta
title="Components/TimelineActionCard"
component={TimelineActionCard}
argTypes={{
datetime: {
control: {
type: "date"
}
},
content: {
control: {
type: "object"
}
}
}}
/>

Renders a card like view for an action with free form text content like an Edit or Reply.

<Meta title="Components/TimelineActionCard" component={TimelineActionCard}/>

# Edit

<Canvas>
<Story name="Edit" args={{
type:"edit",
datetime:"2020-06-23T13:27:56",
by:"campb303",
content:[
"This be an edit my boy\n"
]
}}>
{args => <TimelineActionCard {...args} />}
<Story
name="Edit"
args={{
type:"edit",
datetime:"2020-06-23T13:27:56",
by:"campb303",
content:[
"This be an edit my boy\n"
]
}}
>
{ args => <TimelineActionCard {...args} /> }
</Story>
</Canvas>

# Reply

<Canvas>
<Story name="Reply to User" args={{
type:"reply_to_user",
datetime:"2020-06-23T13:28:18",
by:"campb303",
content:[
"This be a reply my son\n",
"\n",
"Justin\n",
"ECN\n"
]
}}>
{args => <TimelineActionCard {...args} />}
<Story
name="Reply to User"
args={{
type:"reply_to_user",
datetime:"2020-06-23T13:28:18",
by:"campb303",
content:[
"This be a reply my son\n",
"\n",
"Justin\n",
"ECN\n"
]
}}
>
{ args => <TimelineActionCard {...args} /> }
</Story>
</Canvas>

<ArgsTable of={TimelineActionCard} />

0 comments on commit 1c0d212

Please sign in to comment.