misc_pterodactyl-panel/resources/scripts/routers/AuthenticationRouter.tsx

17 lines
906 B
TypeScript
Raw Normal View History

import React from 'react';
import { Route, RouteComponentProps } from 'react-router-dom';
import LoginContainer from '@/components/auth/LoginContainer';
2019-06-12 05:02:18 +00:00
import ForgotPasswordContainer from '@/components/auth/ForgotPasswordContainer';
2019-06-16 23:57:57 +00:00
import ResetPasswordContainer from '@/components/auth/ResetPasswordContainer';
2019-06-17 01:07:57 +00:00
import LoginCheckpointContainer from '@/components/auth/LoginCheckpointContainer';
export default ({ match }: RouteComponentProps) => (
<div className={'mt-32'}>
<Route path={`${match.path}/login`} component={LoginContainer} exact/>
<Route path={`${match.path}/login/checkpoint`} component={LoginCheckpointContainer}/>
<Route path={`${match.path}/password`} component={ForgotPasswordContainer} exact/>
<Route path={`${match.path}/password/reset/:token`} component={ResetPasswordContainer}/>
<Route path={`${match.path}/checkpoint`}/>
</div>
);