2022-11-25 13:25:03 -07:00
|
|
|
import { Route, Routes, useNavigate } from 'react-router-dom';
|
|
|
|
|
2019-06-09 19:26:20 -07:00
|
|
|
import LoginContainer from '@/components/auth/LoginContainer';
|
2019-06-11 22:02:18 -07:00
|
|
|
import ForgotPasswordContainer from '@/components/auth/ForgotPasswordContainer';
|
2019-06-16 16:57:57 -07:00
|
|
|
import ResetPasswordContainer from '@/components/auth/ResetPasswordContainer';
|
2019-06-16 18:07:57 -07:00
|
|
|
import LoginCheckpointContainer from '@/components/auth/LoginCheckpointContainer';
|
2021-01-30 18:01:32 -08:00
|
|
|
import { NotFound } from '@/components/elements/ScreenBlock';
|
2019-06-09 19:26:20 -07:00
|
|
|
|
2022-05-28 13:32:35 -04:00
|
|
|
export default () => {
|
2022-11-25 13:25:03 -07:00
|
|
|
const navigate = useNavigate();
|
2022-05-28 13:32:35 -04:00
|
|
|
|
|
|
|
return (
|
2022-11-25 13:25:03 -07:00
|
|
|
<div className="pt-8 xl:pt-32">
|
|
|
|
<Routes>
|
|
|
|
<Route path="login" element={<LoginContainer />} />
|
|
|
|
<Route path="login/checkpoint/*" element={<LoginCheckpointContainer />} />
|
|
|
|
<Route path="password" element={<ForgotPasswordContainer />} />
|
|
|
|
<Route path="password/reset/:token" element={<ResetPasswordContainer />} />
|
|
|
|
<Route path="*" element={<NotFound onBack={() => navigate('/auth/login')} />} />
|
|
|
|
</Routes>
|
2022-05-28 13:32:35 -04:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|