Skip to content

Commit dda6669

Browse files
committed
Update auth stories
1 parent 7dbc17c commit dda6669

File tree

6 files changed

+62
-1
lines changed

6 files changed

+62
-1
lines changed

src/Auth/Auth.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react'
2-
import { Route } from 'react-router-dom' //
2+
import { Route, Redirect } from 'react-router-dom' //
33
// import { makeStyles } from '@material-ui/core/styles'
44

55
import Container from '@material-ui/core/Container'
@@ -28,6 +28,7 @@ export default function Auth({ match }) {
2828

2929
return (
3030
<Container component="main" maxWidth="xs">
31+
<Redirect exact from={`${match.path}/`} to={`${match.path}/login`} />
3132
<Route path={`${match.path}/login`} component={Login} />
3233
<Route path={`${match.path}/signup`} component={Signup} />
3334
<Route path={`${match.path}/recover`} component={Recover} />

src/Auth/Login/Login.stories.mdx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { Meta, Story, Preview, Props } from '@storybook/addon-docs/blocks'
2+
3+
import Login from './Login'
4+
5+
<Meta title="Auth/Login" component={Login} />
6+
7+
8+
<Preview>
9+
<Story name="login">
10+
<Login />
11+
</Story>
12+
</Preview>

src/Auth/Recover/Recover.stories.mdx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { Meta, Story, Preview, Props } from '@storybook/addon-docs/blocks'
2+
3+
import Recover from './Recover'
4+
5+
<Meta title="Auth/Recover" component={Recover} />
6+
7+
8+
<Preview>
9+
<Story name="recover">
10+
<Recover />
11+
</Story>
12+
</Preview>

src/Auth/Reset/Reset.stories.mdx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { Meta, Story, Preview, Props } from '@storybook/addon-docs/blocks'
2+
3+
import Reset from './Reset'
4+
5+
<Meta title="Auth/Rignup" component={Reset} />
6+
7+
8+
<Preview>
9+
<Story name="reset">
10+
<Reset />
11+
</Story>
12+
</Preview>

src/Auth/Signup/Signup.stories.mdx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { Meta, Story, Preview, Props } from '@storybook/addon-docs/blocks'
2+
3+
import Signup from './Signup'
4+
5+
<Meta title="Auth/Signup" component={Signup} />
6+
7+
8+
<Preview>
9+
<Story name="signup">
10+
<Signup />
11+
</Story>
12+
</Preview>

src/Settings/Settings.stories.mdx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<Meta title="Settings/Intro" />
2+
3+
4+
# Settings module
5+
6+
The settings module is the place for managing all application specific settings like
7+
8+
- Profile
9+
- Organizations
10+
- Security and authentications
11+
- Notifications
12+
- Any other settings

0 commit comments

Comments
 (0)