fix: error page for language switcher
This commit is contained in:
6
app/[lang]/(live)/@languageSwitcher/[...paths]/error.tsx
Normal file
6
app/[lang]/(live)/@languageSwitcher/[...paths]/error.tsx
Normal file
@@ -0,0 +1,6 @@
|
||||
"use client"
|
||||
|
||||
export default function Error({ error }: any) {
|
||||
// Don't return any content if error
|
||||
return null
|
||||
}
|
||||
6
app/[lang]/(live-current)/@languageSwitcher/error.tsx
Normal file
6
app/[lang]/(live-current)/@languageSwitcher/error.tsx
Normal file
@@ -0,0 +1,6 @@
|
||||
"use client"
|
||||
|
||||
export default function Error() {
|
||||
// Don't return any content if error
|
||||
return null
|
||||
}
|
||||
@@ -80,11 +80,11 @@ export default async function RootLayout({
|
||||
</head>
|
||||
<body className="theme-00Corecolours theme-X0Oldcorecolours">
|
||||
<LangPopup lang={params.lang} />
|
||||
<SkipToMainContent lang={params.lang} />
|
||||
<SkipToMainContent />
|
||||
<ServerIntlProvider intl={{ defaultLocale, locale, messages }}>
|
||||
<Header lang={params.lang} languageSwitcher={languageSwitcher} />
|
||||
{children}
|
||||
<Footer lang={params.lang} />
|
||||
<Header lang={params.lang} languageSwitcher={languageSwitcher} />
|
||||
{children}
|
||||
<Footer lang={params.lang} />
|
||||
</ServerIntlProvider>
|
||||
<Script id="page-tracking">{`
|
||||
typeof _satellite !== "undefined" && _satellite.pageBottom();
|
||||
|
||||
Reference in New Issue
Block a user