Skip to content

Commit

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

The MessageView displays an [EmailHeader](/?path=/docs/components-emailheader--default-without-props) and the content of a message.
<Meta
title="Components/MessageView"
component={MessageView}
/>

<Meta title="Components/MessageView" component={MessageView}/>
Displays an [EmailHeader](/?path=/docs/components-emailheader) and the content of a message.

# Default

<Canvas>
<Story name="Default">
{args => <MessageView {...args} />}
<Story
name="Default"
>
{args => <MessageView {...args} />}
</Story>
</Canvas>

# With Message Data
# With Data

<Canvas>
<Story name="With Data" args={{
datetime: "2020-04-15T15:45:45+0000",
from_name:"Ricksy, Jennifer R",
from_email:"jricksy@purdue.edu",
to:[
{
"name": "csite@ecn.purdue.edu",
"email": "csite@ecn.purdue.edu"
}
],
cc:[],
content: [
"I still can't get this to work. And now the \"trial\" version that I was\n",
"using has expired so I can't do anything with a pdf.\n",
"\n",
"Jenny\n",
"\n",
"Jenny Ricksy\n",
"Burke Graduate Program Administrator\n",
"Lyles School of Civil Engineering\n",
"Ph: 765-494-2436 Fax: 765-494-0395\n",
"HAMP 1141G\n"
],
}}>
{args => <MessageView {...args} />}
<Story
name="With Data"
args={{
datetime: "2020-04-15T15:45:45+0000",
from_name:"Ricksy, Jennifer R",
from_email:"jricksy@purdue.edu",
to:[
{ "name": "csite@ecn.purdue.edu", "email": "csite@ecn.purdue.edu" }
],
content: [
"I still can't get this to work. And now the \"trial\" version that I was\n",
"using has expired so I can't do anything with a pdf.\n",
"\n",
"Jenny\n",
"\n",
"Jenny Ricksy\n",
"Burke Graduate Program Administrator\n",
"Lyles School of Civil Engineering\n",
"Ph: 765-494-2436 Fax: 765-494-0395\n",
"HAMP 1141G\n"
],
}}
>
{args => <MessageView {...args} />}
</Story>
</Canvas>
</Canvas>

<ArgsTable of={MessageView} />

0 comments on commit fb9a3c0

Please sign in to comment.