fix: app sidebar dropdown fix (#2751)

This commit is contained in:
Anmol Singh Bhatia 2023-11-10 18:43:16 +05:30 committed by sriram veeraghanta
parent d479781fce
commit 942323f81c

View File

@ -219,11 +219,12 @@ export const WorkspaceSidebarDropdown = observer(() => {
<Menu.Item
key={index}
as="div"
className="flex w-full items-center justify-start rounded px-2 py-1 text-sm text-custom-sidebar-text-200 hover:bg-custom-sidebar-background-80"
onClick={() => {
router.push(link.href);
}}
className="flex w-full items-center cursor-pointer justify-start rounded px-2 py-1 text-sm text-custom-sidebar-text-200 hover:bg-custom-sidebar-background-80"
>
<Link href={link.href}>
<a className="w-full">{link.name}</a>
</Link>
{link.name}
</Menu.Item>
))}
</div>