Merge commit 'ae97a48ba246ef429633640b97742adbb524c239' into iipbs/wr/dev
This commit is contained in:
@@ -6,6 +6,7 @@ import { MainDiv } from "@common/business_components";
|
|||||||
import koBase from '../public/locales/ko/message.json';
|
import koBase from '../public/locales/ko/message.json';
|
||||||
import i18next from "i18next";
|
import i18next from "i18next";
|
||||||
import { I18nextProvider } from "react-i18next";
|
import { I18nextProvider } from "react-i18next";
|
||||||
|
import { useRouter } from "next/navigation";
|
||||||
|
|
||||||
export default function RootLayout({
|
export default function RootLayout({
|
||||||
children,
|
children,
|
||||||
@@ -21,13 +22,19 @@ export default function RootLayout({
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
const router = useRouter();
|
||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<body>
|
<body>
|
||||||
<I18nextProvider i18n={i18next}>
|
<I18nextProvider i18n={i18next}>
|
||||||
<StoreProvider>
|
<StoreProvider>
|
||||||
<BaseLayout>
|
<BaseLayout
|
||||||
|
handleMenuClick={(e) =>{
|
||||||
|
router.push(e.urlPath)
|
||||||
|
}}
|
||||||
|
>
|
||||||
<MainDiv>
|
<MainDiv>
|
||||||
{children}
|
{children}
|
||||||
</MainDiv>
|
</MainDiv>
|
||||||
|
|||||||
Reference in New Issue
Block a user