This commit is contained in:
Linus Flood
2024-11-13 09:59:41 +01:00
parent 495e628d39
commit 0a3b063219
5 changed files with 22 additions and 24 deletions

View File

@@ -61,13 +61,12 @@ export default async function RootLayout({
<body>
<ServerIntlProvider intl={{ defaultLocale, locale, messages }}>
<TrpcProvider>
<RouterTracking>
{!env.HIDE_FOR_NEXT_RELEASE && <>{sitewidealert}</>}
{header}
{!env.HIDE_FOR_NEXT_RELEASE && <>{bookingwidget}</>}
{children}
{footer}
</RouterTracking>
<RouterTracking />
{!env.HIDE_FOR_NEXT_RELEASE && <>{sitewidealert}</>}
{header}
{!env.HIDE_FOR_NEXT_RELEASE && <>{bookingwidget}</>}
{children}
{footer}
<ToastHandler />
<TokenRefresher />
<CookieBotConsent />

View File

@@ -66,14 +66,13 @@ export default async function RootLayout({
<LangPopup />
<SkipToMainContent />
<ServerIntlProvider intl={{ defaultLocale, locale, messages }}>
<RouterTracking>
{header}
<BookingWidget />
{children}
<Footer />
<TokenRefresher />
<CookieBotConsent />
</RouterTracking>
<RouterTracking />
{header}
<BookingWidget />
{children}
<Footer />
<TokenRefresher />
<CookieBotConsent />
</ServerIntlProvider>
<Script id="page-tracking">{`
typeof _satellite !== "undefined" && _satellite.pageBottom();

View File

@@ -41,7 +41,8 @@ export default async function RootLayout({
<body className={styles.layout}>
<ServerIntlProvider intl={{ defaultLocale, locale, messages }}>
<TrpcProvider>
<RouterTracking>{children}</RouterTracking>
<RouterTracking />
{children}
</TrpcProvider>
</ServerIntlProvider>
</body>