mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 09:55:06 +03:00
* 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
15 lines
340 B
TypeScript
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
|
|
}
|