Swap marketplace and my agents tabs, rename to Explore

Co-authored-by: markokraemer.mail <markokraemer.mail@gmail.com>
This commit is contained in:
Cursor Agent 2025-07-17 10:10:35 +00:00
parent 4657c1495f
commit f9ba44a9da
2 changed files with 12 additions and 15 deletions

View File

@ -10,17 +10,17 @@ interface TabsNavigationProps {
}
const agentTabs: TabConfig[] = [
{
value: 'marketplace',
icon: ShoppingBag,
label: 'Explore',
shortLabel: 'Explore',
},
{
value: 'my-agents',
icon: Bot,
label: 'My Agents',
},
{
value: 'marketplace',
icon: ShoppingBag,
label: 'Marketplace',
shortLabel: 'Market',
},
];
export const TabsNavigation = ({ activeTab, onTabChange }: TabsNavigationProps) => {

View File

@ -192,21 +192,19 @@ export function SidebarLeft({
<SidebarMenuSub>
<SidebarMenuSubItem>
<SidebarMenuSubButton className={cn({
'bg-accent text-accent-foreground font-medium': pathname === '/agents' && (searchParams.get('tab') === 'my-agents' || searchParams.get('tab') === null),
'bg-accent text-accent-foreground font-medium': pathname === '/agents' && searchParams.get('tab') === 'marketplace',
})} asChild>
<Link href="/agents?tab=my-agents">
<Bot className="h-4 w-4" />
<span>My Agents</span>
<Link href="/agents?tab=marketplace">
<span>Explore</span>
</Link>
</SidebarMenuSubButton>
</SidebarMenuSubItem>
<SidebarMenuSubItem>
<SidebarMenuSubButton className={cn({
'bg-accent text-accent-foreground font-medium': pathname === '/agents' && searchParams.get('tab') === 'marketplace',
'bg-accent text-accent-foreground font-medium': pathname === '/agents' && (searchParams.get('tab') === 'my-agents' || searchParams.get('tab') === null),
})} asChild>
<Link href="/agents?tab=marketplace">
<Store className="h-4 w-4" />
<span>Marketplace</span>
<Link href="/agents?tab=my-agents">
<span>My Agents</span>
</Link>
</SidebarMenuSubButton>
</SidebarMenuSubItem>
@ -215,7 +213,6 @@ export function SidebarLeft({
onClick={() => setShowNewAgentDialog(true)}
className="cursor-pointer"
>
<Plus className="h-4 w-4" />
<span>New Agent</span>
</SidebarMenuSubButton>
</SidebarMenuSubItem>