fix: add error fallback for mobile dropdown parallel route

This commit is contained in:
Chuma McPhoy
2024-06-20 14:38:31 +02:00
committed by Christel Westerberg
parent 788bfd3568
commit 5d29f65c6f
2 changed files with 12 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
"use client"
import { useParams } from "next/navigation"
import MyPagesMobileDropdown from "@/components/Current/Header/MyPagesMobileDropdown"
import { LangParams } from "@/types/params"
export default function Error() {
const params = useParams<LangParams>()
return <MyPagesMobileDropdown navigation={null} lang={params.lang} />
}