mirror of
https://github.com/supabase/supabase.git
synced 2026-10-09 03:15:06 +03:00
* add sidebar * sidebar docs added * add sidebar * fixed issues * fix mobile * move settings icon back down * remove old stuff * Delete SideBar.tsx * use ProfileImage component * spelling * Update ThemeSettings.tsx * Update ThemeSettings.tsx * Update Sidebar.tsx * layout udpate * Update Sidebar.tsx * fixes * Minor lints * Update Sidebar.tsx * create a alt user dropdown for self hosting and local * add fragment back in * Adds Theme Selector for local/self hosting * Update UserDropdown.tsx * fix theme selector for local self host * Update index.ts * move dropdown and fix * Update LayoutHeader.tsx * update const --------- Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
9 lines
238 B
TypeScript
9 lines
238 B
TypeScript
import { usePathname } from 'next/navigation'
|
|
|
|
export function useHideSidebar() {
|
|
const pathname = usePathname() ?? ''
|
|
return (
|
|
pathname.startsWith('/account') || pathname.startsWith('/new') || pathname === '/organizations'
|
|
)
|
|
}
|