Can delete account

This commit is contained in:
2023-06-15 09:33:41 +02:00
parent fc58e65ea1
commit 6a399ac52a
4 changed files with 114 additions and 1 deletions

View File

@ -11,6 +11,7 @@ import { PasswordForgottenRoute } from "./routes/auth/PasswordForgottenRoute";
import { ResetPasswordRoute } from "./routes/auth/ResetPasswordRoute";
import { BaseAuthenticatedPage } from "./widgets/BaseAuthenticatedPage";
import { BaseLoginPage } from "./widgets/BaseLoginpage";
import { DeleteAccountRoute } from "./routes/DeleteAccountRoute";
interface AuthContext {
signedIn: boolean;
@ -33,6 +34,8 @@ export function App(): React.ReactElement {
return (
<AuthContextK.Provider value={context}>
<Routes>
<Route path="delete_account" element={<DeleteAccountRoute />} />
{signedIn ? (
<Route path="*" element={<BaseAuthenticatedPage />}>
<Route path="profile" element={<ProfileRoute />} />