Skip to content

Commit

Permalink
Update DirectoryInformation stories
Browse files Browse the repository at this point in the history
  • Loading branch information
campb303 committed Apr 14, 2021
1 parent 145285f commit a7c6a54
Showing 1 changed file with 36 additions and 22 deletions.
Original file line number Diff line number Diff line change
@@ -1,28 +1,42 @@
import { Meta, Story, Canvas } from '@storybook/addon-docs/blocks';
import { Meta, Story, Canvas, ArgsTable } from '@storybook/addon-docs/blocks';
import DirectoryInformation from './DirectoryInformation';

Displays the directory information as a table.
<Meta
title="Components/DirectoryInformation"
component={DirectoryInformation}
argTypes={{
section: {
control: {
type: "object"
}
}
}}
/>

<Meta title="Components/DirectoryInformation" component={DirectoryInformation} />
Renders a table displaying an Item's DirectoryInformation section.

<Canvas>
<Story name="Loading" args={{
section:{
"type": "directory_information",
"Name": "Heyi Feng",
"Login": "feng293",
"Computer": "civil4147pc2.ecn",
"Location": "HAMP 4147",
"Email": "feng293@purdue.edu",
"Phone": "5039154835",
"Office": "",
"UNIX Dir": "None",
"Zero Dir": "U=\\\\myhome.itap.purdue.edu\\myhome\\%username%",
"User ECNDB": "http://eng.purdue.edu/jump/2e29495",
"Host ECNDB": "http://eng.purdue.edu/jump/2eccc3f",
"Subject": "Upgrade system and Abaqus"
}
}}>
{args => <DirectoryInformation {...args} />}
<Story name="Default"
args={{
section: {
"type": "directory_information",
"Name": "Heyi Feng",
"Login": "feng293",
"Computer": "civil4147pc2.ecn",
"Location": "HAMP 4147",
"Email": "feng293@purdue.edu",
"Phone": "5039154835",
"Office": "",
"UNIX Dir": "None",
"Zero Dir": "U=\\\\myhome.itap.purdue.edu\\myhome\\%username%",
"User ECNDB": "http://eng.purdue.edu/jump/2e29495",
"Host ECNDB": "http://eng.purdue.edu/jump/2eccc3f",
"Subject": "Upgrade system and Abaqus"
}
}}
>
{args => <DirectoryInformation {...args} />}
</Story>
</Canvas>
</Canvas>

<ArgsTable of={DirectoryInformation} />

0 comments on commit a7c6a54

Please sign in to comment.