Add: PasswordResetPage (the real one)

This commit is contained in:
infiinte-persistence 2020-07-07 15:52:14 +08:00 committed by Sean Yesmunt
parent 47f600e797
commit fdcfd3b6fc
4 changed files with 18 additions and 0 deletions

View file

@ -31,6 +31,7 @@ import ListBlockedPage from 'page/listBlocked';
import FourOhFourPage from 'page/fourOhFour';
import SignInPage from 'page/signIn';
import SignUpPage from 'page/signUp';
import PasswordResetPage from 'page/passwordReset';
import PasswordSetPage from 'page/passwordSet';
import SignInVerifyPage from 'page/signInVerify';
import ChannelsPage from 'page/channels';
@ -162,6 +163,7 @@ function AppRouter(props: Props) {
<Route path={`/`} exact component={HomePage} />
<Route path={`/$/${PAGES.DISCOVER}`} exact component={DiscoverPage} />
<Route path={`/$/${PAGES.AUTH_SIGNIN}`} exact component={SignInPage} />
<Route path={`/$/${PAGES.AUTH_PASSWORD_RESET}`} exact component={PasswordResetPage} />
<Route path={`/$/${PAGES.AUTH_PASSWORD_SET}`} exact component={PasswordSetPage} />
<Route path={`/$/${PAGES.AUTH}`} exact component={SignUpPage} />
<Route path={`/$/${PAGES.AUTH}/*`} exact component={SignUpPage} />

View file

@ -1,6 +1,7 @@
exports.AUTH = 'signup';
exports.AUTH_SIGNIN = 'signin';
exports.AUTH_VERIFY = 'verify';
exports.AUTH_PASSWORD_RESET = 'reset';
exports.AUTH_PASSWORD_SET = 'set';
exports.BACKUP = 'backup';
exports.CHANNEL = 'channel';

View file

@ -0,0 +1,3 @@
import PasswordResetPage from './view';
export default PasswordResetPage;

View file

@ -0,0 +1,12 @@
// @flow
import React from 'react';
import UserPasswordReset from 'component/userPasswordReset';
import Page from 'component/page';
export default function PasswordResetPage() {
return (
<Page authPage className="main--auth-page">
<UserPasswordReset />
</Page>
);
}