diff --git a/packages/frontend/src/pages/org-slug/layout.tsx b/packages/frontend/src/pages/org-slug/layout.tsx index 7ff72e7c..1ff1679f 100644 --- a/packages/frontend/src/pages/org-slug/layout.tsx +++ b/packages/frontend/src/pages/org-slug/layout.tsx @@ -13,6 +13,7 @@ import { Outlet, useParams } from 'react-router-dom'; import { AnimatePresence, motion } from 'framer-motion'; import { cn } from 'utils/classnames'; import { useMediaQuery } from 'usehooks-ts'; +import { ProjectSearchBarDialog } from 'components/projects/ProjectSearchBar'; export interface DashboardLayoutProps extends ComponentPropsWithoutRef<'section'> {} @@ -23,7 +24,9 @@ export const DashboardLayout = ({ }: DashboardLayoutProps) => { const { orgSlug } = useParams(); const isDesktop = useMediaQuery('(min-width: 1024px)'); + const [isSidebarOpen, setIsSidebarOpen] = useState(false); + const [isSearchOpen, setIsSearchOpen] = useState(false); useEffect(() => { if (isDesktop) { @@ -32,86 +35,96 @@ export const DashboardLayout = ({ }, [isDesktop]); return ( -
- {/* Header on mobile */} -
- -
- - {isSidebarOpen ? ( - - - - ) : ( - - <> - - - - - )} - -
-
-
- - -
- - - + + ) : ( + + <> + + + + + + )} +
-
-
-
+ +
+ + +
+ + + +
+
+
+ + setIsSearchOpen(false)} + /> + ); };