From 3a4256b691674a4672ac2641f169dfa49132aedc Mon Sep 17 00:00:00 2001 From: Tomas Gonzalez Date: Mon, 12 Aug 2024 14:17:40 -0400 Subject: [PATCH 1/2] Fix login's navbar --- src/common/components/Navbar/index.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/common/components/Navbar/index.jsx b/src/common/components/Navbar/index.jsx index 0144b34af..afa556102 100644 --- a/src/common/components/Navbar/index.jsx +++ b/src/common/components/Navbar/index.jsx @@ -25,7 +25,7 @@ import Text from '../Text'; import useAuth from '../../hooks/useAuth'; import navbarTR from '../../translations/navbar'; import LanguageSelector from '../LanguageSelector'; -import { isWindow } from '../../../utils'; +import { isWindow, setStorageItem } from '../../../utils'; import { WHITE_LABEL_ACADEMY } from '../../../utils/variables'; import axios from '../../../axios'; import modifyEnv from '../../../../modifyEnv'; @@ -520,6 +520,9 @@ function NavbarWithSubNavigation({ translations, pageProps }) { fontSize="14px" padding="12px 0" lineHeight="22px" + onClick={() => { + setStorageItem('redirect', router?.asPath); + }} _hover={{ textDecoration: 'none', }} From d08e3418aa3b519c5694bfcb49d8aa5448ff89ea Mon Sep 17 00:00:00 2001 From: Tomas Gonzalez <56565994+tommygonzaleza@users.noreply.github.com> Date: Mon, 12 Aug 2024 14:21:09 -0400 Subject: [PATCH 2/2] Update index.jsx --- src/common/components/Navbar/index.jsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/common/components/Navbar/index.jsx b/src/common/components/Navbar/index.jsx index afa556102..e78c0ec4b 100644 --- a/src/common/components/Navbar/index.jsx +++ b/src/common/components/Navbar/index.jsx @@ -520,9 +520,7 @@ function NavbarWithSubNavigation({ translations, pageProps }) { fontSize="14px" padding="12px 0" lineHeight="22px" - onClick={() => { - setStorageItem('redirect', router?.asPath); - }} + onClick={() => setStorageItem('redirect', router?.asPath)} _hover={{ textDecoration: 'none', }}