diff --git a/src/components/shared/components/Layout/components/Header.tsx b/src/components/shared/components/Layout/components/Header.tsx index 2190430e..433bfaf7 100644 --- a/src/components/shared/components/Layout/components/Header.tsx +++ b/src/components/shared/components/Layout/components/Header.tsx @@ -2,6 +2,8 @@ import { Toolbar } from "@mui/material"; import clsx from "clsx"; import Link from "next/link"; +import { ZetaAiIcon } from "~/components/Cmdk/components/ZetaAiIcon"; + import { ClientOnlyPortal } from "../../ClientOnlyPortal"; import { IconSearch, IconZetaDocsLogo } from "../../Icons"; import { MobileMenuButton } from "./MobileMenuButton"; @@ -11,11 +13,22 @@ export const Header: React.FC<{ isLeftDrawerOpen: boolean; toggleDrawerOpen: () => void; setIsLeftDrawerOpen: (isOpen: boolean) => void; -}> = ({ isLeftDrawerOpen, toggleDrawerOpen, setIsLeftDrawerOpen }) => { + setIsCmdkOpen: React.Dispatch>; + upSm: boolean; +}> = ({ isLeftDrawerOpen, toggleDrawerOpen, setIsLeftDrawerOpen, setIsCmdkOpen, upSm }) => { return ( <> + diff --git a/src/components/shared/components/Layout/components/NavigationLayout.tsx b/src/components/shared/components/Layout/components/NavigationLayout.tsx index 1ed940d4..30a4980e 100644 --- a/src/components/shared/components/Layout/components/NavigationLayout.tsx +++ b/src/components/shared/components/Layout/components/NavigationLayout.tsx @@ -6,7 +6,6 @@ import { motion } from "framer-motion"; import Link from "next/link"; import { PropsWithChildren, useEffect, useMemo, useState } from "react"; -import { ZetaAiIcon } from "~/components/Cmdk/components/ZetaAiIcon"; import { useCurrentBreakpoint } from "~/hooks/useCurrentBreakpoint"; import { getRevealProps } from "~/lib/helpers/animations"; @@ -135,16 +134,6 @@ export const NavigationLayout: React.FC = ({ isMainPage,
- - - {navBottomItems.map((item) => ( = ({ isMainPage, })} >
setIsLeftDrawerOpen((prev) => !prev)} setIsLeftDrawerOpen={setIsLeftDrawerOpen} + upSm={upSm} />