fix: error page for language switcher
This commit is contained in:
6
app/[lang]/(live)/@languageSwitcher/[...uri]/error.tsx
Normal file
6
app/[lang]/(live)/@languageSwitcher/[...uri]/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
|
||||||
|
}
|
||||||
@@ -80,7 +80,7 @@ export default async function RootLayout({
|
|||||||
</head>
|
</head>
|
||||||
<body className="theme-00Corecolours theme-X0Oldcorecolours">
|
<body className="theme-00Corecolours theme-X0Oldcorecolours">
|
||||||
<LangPopup lang={params.lang} />
|
<LangPopup lang={params.lang} />
|
||||||
<SkipToMainContent lang={params.lang} />
|
<SkipToMainContent />
|
||||||
<ServerIntlProvider intl={{ defaultLocale, locale, messages }}>
|
<ServerIntlProvider intl={{ defaultLocale, locale, messages }}>
|
||||||
<Header lang={params.lang} languageSwitcher={languageSwitcher} />
|
<Header lang={params.lang} languageSwitcher={languageSwitcher} />
|
||||||
{children}
|
{children}
|
||||||
|
|||||||
Reference in New Issue
Block a user