Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

[FE-2099] chore(docs): top nav (authenticated) homepage link toggleable for nimbus (#40237)

Alaister Youngd1ee038343a4
diff --git a/apps/docs/components/Navigation/NavigationMenu/useDropdownMenu.tsx b/apps/docs/components/Navigation/NavigationMenu/useDropdownMenu.tsx
index ab0fb45827e..ececa37033a 100644
--- a/apps/docs/components/Navigation/NavigationMenu/useDropdownMenu.tsx
+++ b/apps/docs/components/Navigation/NavigationMenu/useDropdownMenu.tsx
@@ -1,8 +1,8 @@
'use client'
import type { User } from '@supabase/supabase-js'
-import { LogOut, Globe, LifeBuoy, Settings, UserIcon, Database } from 'lucide-react'
-import { logOut } from 'common'
+import { isFeatureEnabled, logOut } from 'common'
+import { Database, Globe, Home, LifeBuoy, LogOut, Settings, UserIcon } from 'lucide-react'
import type { menuItem } from 'ui-patterns/AuthenticatedDropdownMenu'
import { IconGitHub } from './MenuIcons'
@@ -27,15 +27,21 @@ const useDropdownMenu = (user: User | null) => {
},
],
[
- {
- label: 'Supabase.com',
- icon: Globe,
- href: 'https://supabase.com',
- otherProps: {
- target: '_blank',
- rel: 'noreferrer noopener',
- },
- },
+ isFeatureEnabled('docs:navigation_dropdown_links_home')
+ ? {
+ label: 'Supabase.com',
+ icon: Globe,
+ href: 'https://supabase.com',
+ otherProps: {
+ target: '_blank',
+ rel: 'noreferrer noopener',
+ },
+ }
+ : {
+ label: 'Dashboard',
+ icon: Home,
+ href: '../dashboard',
+ },
{
label: 'GitHub',
icon: IconGitHub as any,