SW-386 Using header component in layout instead of parallel route. Added suspense

This commit is contained in:
Linus Flood
2024-09-11 08:11:47 +02:00
parent 21d8a5835a
commit e61fa91644
7 changed files with 13 additions and 27 deletions

View File

@@ -1 +0,0 @@
export { default } from "../page"

View File

@@ -1 +0,0 @@
export { default } from "../../page"

View File

@@ -1,5 +0,0 @@
"use client"
export default function Error() {
return null
}

View File

@@ -1 +0,0 @@
export { default } from "../../page"

View File

@@ -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 />
}