Files
supabase/apps/studio/hooks/misc/useHideSidebar.ts
T
Joshen Lim fd98a08a4f Chore/default to new organization layout (#35515)
* Default to new organization layout + remove feature preview

* Remove feature preview

* Clean up LayoutUpdateBanner

* Clean up

* Fix

* Fixy fix

* Update comment

* Nit to fix layout shift
2025-05-13 11:25:35 +08:00

15 lines
340 B
TypeScript

import { usePathname } from 'next/navigation'
export function useHideSidebar() {
const pathname = usePathname() ?? ''
const shouldHide =
pathname.startsWith('/account') ||
pathname.startsWith('/new') ||
pathname === '/support/new' ||
pathname === '/organizations' ||
pathname === '/sign-in'
return shouldHide
}