-
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
10 additions
and
8 deletions.
There are no files selected for viewing
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,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} /> |