mirror of
https://github.com/supabase/supabase.git
synced 2026-05-08 09:50:33 -04:00
a054053f75
* feat: adds success message to link support query * style: fixes styling * Use existing support form components + fix styling issues + refactor and clean up * nit --------- Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
15 lines
344 B
TypeScript
15 lines
344 B
TypeScript
import { usePathname } from 'next/navigation'
|
|
|
|
export function useHideSidebar() {
|
|
const pathname = usePathname() ?? ''
|
|
|
|
const shouldHide =
|
|
pathname.startsWith('/account') ||
|
|
pathname.startsWith('/new') ||
|
|
pathname.startsWith('/support') ||
|
|
pathname === '/organizations' ||
|
|
pathname === '/sign-in'
|
|
|
|
return shouldHide
|
|
}
|