diff --git a/apps/web/components/SideNav.tsx b/apps/web/components/SideNav.tsx index b8e4e8a3a..6cca47206 100644 --- a/apps/web/components/SideNav.tsx +++ b/apps/web/components/SideNav.tsx @@ -1,7 +1,7 @@ "use client"; import { Fragment } from "react"; -import { usePathname } from "next/navigation"; +import { usePathname, useSearchParams } from "next/navigation"; import Link from "next/link"; import { Dialog, @@ -297,6 +297,9 @@ export function SideNav(props: { function Sidebar(props: { isMobile: boolean }) { const path = usePathname(); + const params = useSearchParams(); + const typeParams = params.get("type"); + const showMailNav = path === "/mail" || path === "/compose"; const { onOpen } = useComposeModal(); @@ -332,12 +335,15 @@ function Sidebar(props: { isMobile: boolean }) {