Skip to content

Commit

Permalink
Update LoginForm stories
Browse files Browse the repository at this point in the history
  • Loading branch information
campb303 committed Apr 19, 2021
1 parent ec85488 commit 3671e7d
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/components/LoginForm/LoginForm.stories.mdx
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
import { Meta, Story, Canvas } from '@storybook/addon-docs/blocks';
import { Meta, Story, Canvas, ArgsTable } from '@storybook/addon-docs/blocks';
import LoginForm from "./LoginForm";

The LoginForm acts as the only public facing page for the webqueue2. If any part of the app is accessed without access tokens, the user will be redirected here. It takes a username and password, attempts to login and, if successful, sets access tokens and redirects users to webqueue2.
<Meta
title="Components/LoginForm"
component={LoginForm}
/>

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

# Default
Renders the login page. Responsible for sending login details and setting access tokens.

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

<ArgsTable of={LoginForm} />

0 comments on commit 3671e7d

Please sign in to comment.