diff --git a/src/components/Home/Home.tsx b/src/components/Home/Home.tsx index 749b0e33..a70c6d80 100644 --- a/src/components/Home/Home.tsx +++ b/src/components/Home/Home.tsx @@ -28,7 +28,7 @@ const Home: React.FC = () => ( - diff --git a/src/components/Layout/MenuDrawer/MenuDrawer.tsx b/src/components/Layout/MenuDrawer/MenuDrawer.tsx index d0b8cc2a..7f0a03bf 100644 --- a/src/components/Layout/MenuDrawer/MenuDrawer.tsx +++ b/src/components/Layout/MenuDrawer/MenuDrawer.tsx @@ -15,9 +15,14 @@ const { Text } = Typography; interface MenuDrawerProps { openMenu: boolean; setOpenMenu: (value: boolean) => void; + handleMentorRegistration: () => void; } -const MenuDrawer: React.FC = ({ openMenu, setOpenMenu }) => { +const MenuDrawer: React.FC = ({ + openMenu, + setOpenMenu, + handleMentorRegistration, +}) => { const handleOpenMenu = (): boolean => { return openMenu; }; @@ -50,6 +55,12 @@ const MenuDrawer: React.FC = ({ openMenu, setOpenMenu }) => { Join Us + { } else { navigate('/mentor-registration'); } + setOpenMenu(false); }; return ( @@ -95,13 +96,13 @@ const Navbar: React.FC = () => { Join Us + - @@ -168,7 +169,11 @@ const Navbar: React.FC = () => { - + {isLoginModalVisible ? ( ) : null} diff --git a/src/components/LoginModal/index.tsx b/src/components/LoginModal/index.tsx index 9dfc4ab3..d8555d12 100644 --- a/src/components/LoginModal/index.tsx +++ b/src/components/LoginModal/index.tsx @@ -50,7 +50,7 @@ const LoginModal: React.FC = ({ handleClose }) => { return (
-
+
diff --git a/src/components/LogoutModal/index.tsx b/src/components/LogoutModal/index.tsx index 6434fdcc..3751bd1f 100644 --- a/src/components/LogoutModal/index.tsx +++ b/src/components/LogoutModal/index.tsx @@ -34,7 +34,7 @@ const LogoutModal: React.FC = ({ onClose }) => { return (
-
+