From b302ca38987d1e0922c54c5fa8ee80738cf6e2c1 Mon Sep 17 00:00:00 2001 From: Charles de Dreuille Date: Wed, 17 Jul 2024 13:13:45 +0100 Subject: [PATCH] Temporarily disable search on mobile until we figure what the issue is --- packages/ui/src/header/mobile-menu.tsx | 16 +++++++++++----- packages/ui/src/search/index.tsx | 2 ++ 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/packages/ui/src/header/mobile-menu.tsx b/packages/ui/src/header/mobile-menu.tsx index 2e6aae07..1b96335b 100644 --- a/packages/ui/src/header/mobile-menu.tsx +++ b/packages/ui/src/header/mobile-menu.tsx @@ -1,15 +1,17 @@ -import type { FC, ReactNode } from 'react'; +'use client'; + +import { type FC, type ReactNode } from 'react'; import { MenuIcon } from '@storybook/icons'; import * as DropdownMenu from '@radix-ui/react-dropdown-menu'; import * as ScrollArea from '@radix-ui/react-scroll-area'; import { cn } from '@repo/utils'; -import { Search } from '../search'; +// import { Search } from '../search'; import { Arrow } from './arrow'; import { nav } from './nav'; import type { HeaderProps } from '.'; export const MobileMenu = ({ - algoliaApiKey, + // algoliaApiKey, variant, }: { algoliaApiKey: string; @@ -44,12 +46,16 @@ export const MobileMenu = ({ > - + /> */} {nav.map((item) => ( = ({