-
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
36 additions
and
22 deletions.
There are no files selected for viewing
58 changes: 36 additions & 22 deletions
58
src/components/DirectoryInformation/DirectoryInformation.stories.mdx
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,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} /> |