diff --git a/Frontend/src/pages/Login/MainLoginPage.jsx b/Frontend/src/pages/Login/MainLoginPage.jsx index a2300c8..15bad91 100644 --- a/Frontend/src/pages/Login/MainLoginPage.jsx +++ b/Frontend/src/pages/Login/MainLoginPage.jsx @@ -1,16 +1,20 @@ import React from "react"; import Navbar2 from "../../components/Navbar2.jsx"; -import { Outlet } from "react-router-dom"; +import { Outlet, useOutletContext } from "react-router-dom"; import Container from "../../components/Container.jsx"; -const MainLoginPage = () => { +const MainLoginPage = ({ language = "en" }) => { return ( <> + {/* If Navbar2 is used here, pass language */} + - + {/* Pass language to Outlet context for nested routes */} + ); }; export default MainLoginPage; +