fix: add error fallback for mobile dropdown parallel route
This commit is contained in:
committed by
Christel Westerberg
parent
788bfd3568
commit
5d29f65c6f
12
app/[lang]/(live-current)/@myPagesMobileDropdown/error.tsx
Normal file
12
app/[lang]/(live-current)/@myPagesMobileDropdown/error.tsx
Normal 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} />
|
||||
}
|
||||
Reference in New Issue
Block a user