fix: validation for header

This commit is contained in:
Simon Emanuelsson
2024-09-22 21:22:21 +02:00
parent ac5e48357c
commit 68703d72e1
33 changed files with 453 additions and 404 deletions

View File

@@ -1,5 +1,6 @@
import { homeHrefs } from "@/constants/homeHrefs"
import { env } from "@/env/server"
import { getLanguageSwitcher } from "@/lib/trpc/memoizedRequests"
import { serverClient } from "@/lib/trpc/server"
import { getLang } from "@/i18n/serverContext"
@@ -18,7 +19,7 @@ export default async function Header() {
lang: getLang(),
}),
serverClient().user.name(),
serverClient().contentstack.languageSwitcher.get(),
getLanguageSwitcher(),
serverClient().contentstack.myPages.navigation.get(),
])