feat(SW-237): Updated parallel route to the root layout

This commit is contained in:
Hrishikesh Vaipurkar
2024-08-30 15:46:36 +02:00
parent ad2182a60b
commit c2e521035b
10 changed files with 39 additions and 52 deletions

View File

@@ -21,9 +21,11 @@ export default async function RootLayout({
children,
params,
header,
bookingwidget,
}: React.PropsWithChildren<
LayoutArgs<LangParams> & {
header: React.ReactNode
bookingwidget: React.ReactNode
}
>) {
setLang(params.lang)
@@ -52,6 +54,7 @@ export default async function RootLayout({
<ServerIntlProvider intl={{ defaultLocale, locale, messages }}>
<TrpcProvider>
{header}
{bookingwidget}
{children}
<ToastHandler />
<Footer />