eval project sidebar (#1558)

This commit is contained in:
Shuchang Zheng
2025-01-15 03:09:25 -08:00
committed by GitHub
parent d905a8d4b9
commit f1495e4ce6

View File

@@ -8,6 +8,7 @@ type Props = {
links: Array<{
label: string;
to: string;
newTab?: boolean;
disabled?: boolean;
icon?: React.ReactNode;
}>;
@@ -46,6 +47,8 @@ function NavLinkGroup({ title, links }: Props) {
<NavLink
key={link.to}
to={link.to}
target={link.newTab ? "_blank" : undefined}
rel={link.newTab ? "noreferrer,noopener" : undefined}
className={({ isActive }) => {
return cn(
"block rounded-lg py-2 pl-3 text-slate-400 hover:bg-muted hover:text-primary",