panel goes to projects page

This commit is contained in:
Vivian Phung 2024-02-26 23:03:07 -05:00
parent effa0bbf14
commit 355118565b
No known key found for this signature in database

View File

@ -105,7 +105,12 @@ const Sidebar = () => {
{ title: 'Projects', icon: <FolderIcon /> },
{ title: 'Settings', icon: <SettingsSlidersIcon /> },
].map(({ title, icon }, index) => (
<NavLink to={`/${orgSlug}/${title}`} key={index}>
<NavLink
to={
title === 'Projects' ? `/${orgSlug}` : `/${orgSlug}/${title}`
}
key={index}
>
<Tabs.Trigger icon={icon} value={title}>
{title}
</Tabs.Trigger>