feat: pass in navigation from server components
This commit is contained in:
committed by
Michael Zetterberg
parent
da1f142b57
commit
e92b6cc27d
@@ -5,6 +5,9 @@ import MyPagesMobileDropdown from "@/components/Current/Header/MyPagesMobileDrop
|
||||
|
||||
export default async function MyPagesMobileDropdownPage() {
|
||||
// TODO: Figure out how to pass down props at the paralell route level.
|
||||
// - POssibly by parsing [...paths]
|
||||
return <MyPagesMobileDropdown lang={null} />
|
||||
// - Possibly by parsing [...paths]
|
||||
|
||||
const navigation = await serverClient().contentstack.myPages.navigation.get()
|
||||
if (!navigation) return null
|
||||
return <MyPagesMobileDropdown navigation={navigation} lang={null} />
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user