| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 3fb86da commit 26fee2d
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -23,7 +23,7 @@ const navItems = [ | |||
| 23 | 23 | { href: '/projects', label: 'Projects', icon: FolderKanban }, | |
| 24 | 24 | { href: '/studio', label: 'AI Studio', icon: Sparkles }, | |
| 25 | 25 | { href: '/discover', label: 'Discover', icon: Compass }, | |
| 26 | - { href: '/team', label: 'Team', icon: Users }, | ||
| 26 | + { href: 'https://team.flowup.nationquest.fr', label: 'FlowUp Team', icon: Users, isExternal: true }, | ||
| 27 | 27 | { href: '/chat', label: 'Chat', icon: MessageSquare }, | |
| 28 | 28 | { href: '/announcements', label: 'Announcements', icon: Megaphone }, | |
| 29 | 29 | { href: '/documentation', label: 'Docs', icon: BookText, adminOnly: false }, | |
@@ -66,14 +66,19 @@ export function AppSidebar() { | |||
| 66 | 66 | return null; | |
| 67 | 67 | } | |
| 68 | 68 | const Icon = item.icon; | |
| 69 | + | ||
| 70 | + const linkProps = item.isExternal | ||
| 71 | + ? { href: item.href, target: '_blank', rel: 'noopener noreferrer' } | ||
| 72 | + : { href: item.href }; | ||
| 73 | + | ||
| 69 | 74 | return ( | |
| 70 | 75 | <SidebarMenuItem key={item.href}> | |
| 71 | 76 | <SidebarMenuButton | |
| 72 | 77 | asChild | |
| 73 | - isActive={pathname === item.href || (item.href !== '/dashboard' && pathname.startsWith(item.href))} | ||
| 78 | + isActive={!item.isExternal && (pathname === item.href || (item.href !== '/dashboard' && pathname.startsWith(item.href)))} | ||
| 74 | 79 | tooltip={{ children: item.label, side: 'right', className: "font-body" }} | |
| 75 | 80 | > | |
| 76 | - <Link href={item.href}> | ||
| 81 | + <Link {...linkProps}> | ||
| 77 | 82 | <Icon /> | |
| 78 | 83 | <span>{item.label}</span> | |
| 79 | 84 | </Link> | |
| Back | FazBrowse Home | New Git URL |
0 commit comments