1
1
mirror of https://github.com/pterodactyl/panel.git synced 2024-11-26 02:52:30 +01:00
Pterodactyl-Panel/resources/scripts/routers/AuthenticationRouter.tsx
2022-11-25 13:25:03 -07:00

24 lines
1.0 KiB
TypeScript

import { Route, Routes, useNavigate } from 'react-router-dom';
import LoginContainer from '@/components/auth/LoginContainer';
import ForgotPasswordContainer from '@/components/auth/ForgotPasswordContainer';
import ResetPasswordContainer from '@/components/auth/ResetPasswordContainer';
import LoginCheckpointContainer from '@/components/auth/LoginCheckpointContainer';
import { NotFound } from '@/components/elements/ScreenBlock';
export default () => {
const navigate = useNavigate();
return (
<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>
</div>
);
};