From 98b48b8290941a9da444ffeacdefa4d05f2049e9 Mon Sep 17 00:00:00 2001 From: Linus Flood Date: Wed, 18 Sep 2024 15:31:15 +0200 Subject: [PATCH] More PR fixes --- components/Header/MainMenu/MobileMenuWrapper/index.tsx | 2 +- .../Header/MainMenu/MyPagesMenuWrapper/index.tsx | 2 +- .../NavigationMenu/NavigationMenuList/index.tsx | 10 +++------- components/Header/MainMenu/index.tsx | 8 ++++---- components/Header/index.tsx | 2 +- components/MyPages/Sidebar/index.tsx | 2 +- types/components/header/navigationMenuList.ts | 6 ++++++ types/header.ts | 1 + 8 files changed, 18 insertions(+), 15 deletions(-) create mode 100644 types/components/header/navigationMenuList.ts diff --git a/components/Header/MainMenu/MobileMenuWrapper/index.tsx b/components/Header/MainMenu/MobileMenuWrapper/index.tsx index b61b086fd..fb851248c 100644 --- a/components/Header/MainMenu/MobileMenuWrapper/index.tsx +++ b/components/Header/MainMenu/MobileMenuWrapper/index.tsx @@ -2,7 +2,7 @@ import { serverClient } from "@/lib/trpc/server" import MobileMenu from "../MobileMenu" -export default async function MobileMenuServer() { +export default async function MobileMenuWrapper() { const [languages, headerData] = await Promise.all([ serverClient().contentstack.languageSwitcher.get(), serverClient().contentstack.base.header(), diff --git a/components/Header/MainMenu/MyPagesMenuWrapper/index.tsx b/components/Header/MainMenu/MyPagesMenuWrapper/index.tsx index da941389a..4108b807a 100644 --- a/components/Header/MainMenu/MyPagesMenuWrapper/index.tsx +++ b/components/Header/MainMenu/MyPagesMenuWrapper/index.tsx @@ -12,7 +12,7 @@ import MyPagesMobileMenu from "../MyPagesMobileMenu" import styles from "../mainMenu.module.css" -export default async function MyPagesMenuServer() { +export default async function MyPagesMenuWrapper() { const lang = getLang() const [intl, myPagesNavigation, user, membership] = await Promise.all([ getIntl(), diff --git a/components/Header/MainMenu/NavigationMenu/NavigationMenuList/index.tsx b/components/Header/MainMenu/NavigationMenu/NavigationMenuList/index.tsx index c59797c6c..bdc957582 100644 --- a/components/Header/MainMenu/NavigationMenu/NavigationMenuList/index.tsx +++ b/components/Header/MainMenu/NavigationMenu/NavigationMenuList/index.tsx @@ -1,19 +1,15 @@ "use client" -import { z } from "zod" - -import { getHeaderSchema } from "@/server/routers/contentstack/base/output" import NavigationMenuItem from "../NavigationMenuItem" import styles from "../navigationMenu.module.css" +import { NavigationMenuListProps } from "@/types/components/header/navigationMenuList" + export default function NavigationMenuList({ isMobile, items, -}: { - isMobile: boolean - items: z.infer["menuItems"] -}) { +}: NavigationMenuListProps) { return (