From 324b89fc4f8e6c24f66095b170f1253737e5e2b5 Mon Sep 17 00:00:00 2001 From: Alberto Defendi <1369-ahl-berto@users.noreply.gitlab.inf.unibz.it> Date: Thu, 22 Apr 2021 14:21:32 +0200 Subject: [PATCH] Route for ProfilePage --- src/components/AuthUser/SignInForm/SignInForm.tsx | 4 +++- src/components/api/routes.ts | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/AuthUser/SignInForm/SignInForm.tsx b/src/components/AuthUser/SignInForm/SignInForm.tsx index c88e37b..765d9a5 100644 --- a/src/components/AuthUser/SignInForm/SignInForm.tsx +++ b/src/components/AuthUser/SignInForm/SignInForm.tsx @@ -55,7 +55,9 @@ export const SignInForm: FC = () => { }, }, ) - .then(() => history.replace(AuthRoutes.dashboard)); + .then(() => { + history.replace(AuthRoutes.dashboard); + }); }; const classes = useStyles(); diff --git a/src/components/api/routes.ts b/src/components/api/routes.ts index e06d35e..7086094 100644 --- a/src/components/api/routes.ts +++ b/src/components/api/routes.ts @@ -5,7 +5,7 @@ */ export enum AuthRoutes { dashboard = '/dashboard', - account = '/account', + profile = '/profile', } /** -- GitLab