fix: remove listening to params in not-found, not needed
This commit is contained in:
@@ -1,10 +1,6 @@
|
|||||||
import { getIntl } from "@/i18n"
|
import { getIntl } from "@/i18n"
|
||||||
import { setLang } from "@/i18n/serverContext"
|
|
||||||
|
|
||||||
import { LangParams, PageArgs } from "@/types/params"
|
export default async function NotFound() {
|
||||||
|
|
||||||
export default async function NotFound({ params }: PageArgs<LangParams>) {
|
|
||||||
setLang(params.lang)
|
|
||||||
const { formatMessage } = await getIntl()
|
const { formatMessage } = await getIntl()
|
||||||
return (
|
return (
|
||||||
<main>
|
<main>
|
||||||
|
|||||||
Reference in New Issue
Block a user