fix #23
This commit is contained in:
@@ -42,7 +42,7 @@ function LinkWithIcon({
|
|||||||
return (
|
return (
|
||||||
<Link
|
<Link
|
||||||
className={cn(
|
className={cn(
|
||||||
'text-text flex items-center gap-2 rounded-md px-3 py-2 text-sm font-medium leading-none transition-all transition-colors hover:bg-slate-100',
|
'text-text flex items-center gap-2 rounded-md px-3 py-2 text-sm font-medium transition-all transition-colors hover:bg-slate-100',
|
||||||
active && 'bg-slate-100',
|
active && 'bg-slate-100',
|
||||||
className
|
className
|
||||||
)}
|
)}
|
||||||
@@ -150,14 +150,7 @@ export default function LayoutMenu({ dashboards }: LayoutMenuProps) {
|
|||||||
<LinkWithIcon
|
<LinkWithIcon
|
||||||
key={item.id}
|
key={item.id}
|
||||||
icon={LayoutPanelTopIcon}
|
icon={LayoutPanelTopIcon}
|
||||||
label={
|
label={item.name}
|
||||||
<div className="flex items-center justify-between gap-0.5">
|
|
||||||
<span>{item.name}</span>
|
|
||||||
<span className="text-xs text-muted-foreground">
|
|
||||||
{item.project.name}
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
}
|
|
||||||
href={`/${item.organizationSlug}/${item.projectId}/dashboards/${item.id}`}
|
href={`/${item.organizationSlug}/${item.projectId}/dashboards/${item.id}`}
|
||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
|
|||||||
Reference in New Issue
Block a user