SW-386 Using header component in layout instead of parallel route. Added suspense
This commit is contained in:
@@ -1 +0,0 @@
|
||||
export { default } from "../page"
|
||||
@@ -1 +0,0 @@
|
||||
export { default } from "../../page"
|
||||
@@ -1,5 +0,0 @@
|
||||
"use client"
|
||||
|
||||
export default function Error() {
|
||||
return null
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
export { default } from "../../page"
|
||||
@@ -1,10 +0,0 @@
|
||||
import Header from "@/components/Header"
|
||||
import { setLang } from "@/i18n/serverContext"
|
||||
|
||||
import { LangParams, PageArgs } from "@/types/params"
|
||||
|
||||
export default async function HeaderPage({ params }: PageArgs<LangParams>) {
|
||||
setLang(params.lang)
|
||||
|
||||
return <Header />
|
||||
}
|
||||
Reference in New Issue
Block a user