@@ -6,14 +6,14 @@ import { useState } from 'react'
66import { useParams } from 'common'
77import { SidebarContent } from 'components/interfaces/Sidebar'
88import { IS_PLATFORM } from 'lib/constants'
9- import { buttonVariants , cn } from 'ui'
9+ import { Button , cn } from 'ui'
1010import { CommandMenuTrigger } from 'ui-patterns'
1111import MobileSheetNav from 'ui-patterns/MobileSheetNav/MobileSheetNav'
1212
1313export const ICON_SIZE = 20
1414export const ICON_STROKE_WIDTH = 1.5
1515
16- const MobileNavigationBar = ( ) => {
16+ const MobileNavigationBar = ( { hideMobileMenu } : { hideMobileMenu ?: boolean } ) => {
1717 const router = useRouter ( )
1818 const [ isSheetOpen , setIsSheetOpen ] = useState ( false )
1919 const { ref : projectRef } = useParams ( )
@@ -57,16 +57,15 @@ const MobileNavigationBar = () => {
5757 </ div >
5858 </ button >
5959 </ CommandMenuTrigger >
60- < button
61- title = "Menu dropdown button"
62- className = { cn (
63- buttonVariants ( { type : 'default' } ) ,
64- 'flex lg:hidden border-default bg-surface-100/75 text-foreground-light rounded-md min-w-[30px] w-[30px] h-[30px] data-[state=open]:bg-overlay-hover/30'
65- ) }
66- onClick = { ( ) => setIsSheetOpen ( true ) }
67- >
68- < Menu size = { 18 } strokeWidth = { 1 } />
69- </ button >
60+ { ! hideMobileMenu && (
61+ < Button
62+ title = "Menu dropdown button"
63+ type = "default"
64+ className = "flex lg:hidden border-default bg-surface-100/75 text-foreground-light rounded-md min-w-[30px] w-[30px] h-[30px] data-[state=open]:bg-overlay-hover/30"
65+ icon = { < Menu /> }
66+ onClick = { ( ) => setIsSheetOpen ( true ) }
67+ />
68+ ) }
7069 </ div >
7170 </ nav >
7271 < MobileSheetNav open = { isSheetOpen } onOpenChange = { setIsSheetOpen } data-state = "expanded" >
0 commit comments