FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

dans le menu de nav, ajoute "Flowup Team" qui redirige vers https://team · softpython2884/QuestHub@26fee2d · GitHub

Commit 26fee2d

Browse files
dans le menu de nav, ajoute "Flowup Team" qui redirige vers https://team
1 parent 3fb86da commit 26fee2d

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

‎src/components/layout/AppSidebar.tsx‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const navItems = [
2323
{ href: '/projects', label: 'Projects', icon: FolderKanban },
2424
{ href: '/studio', label: 'AI Studio', icon: Sparkles },
2525
{ 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 },
2727
{ href: '/chat', label: 'Chat', icon: MessageSquare },
2828
{ href: '/announcements', label: 'Announcements', icon: Megaphone },
2929
{ href: '/documentation', label: 'Docs', icon: BookText, adminOnly: false },
@@ -66,14 +66,19 @@ export function AppSidebar() {
6666
return null;
6767
}
6868
const Icon = item.icon;
69+
70+
const linkProps = item.isExternal
71+
? { href: item.href, target: '_blank', rel: 'noopener noreferrer' }
72+
: { href: item.href };
73+
6974
return (
7075
<SidebarMenuItem key={item.href}>
7176
<SidebarMenuButton
7277
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)))}
7479
tooltip={{ children: item.label, side: 'right', className: "font-body" }}
7580
>
76-
<Link href={item.href}>
81+
<Link {...linkProps}>
7782
<Icon />
7883
<span>{item.label}</span>
7984
</Link>

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL