mirror of
https://github.com/fosrl/pangolin.git
synced 2025-07-14 16:04:56 +02:00
add some more icons
This commit is contained in:
parent
3c7b2c03f8
commit
587bb758a2
6 changed files with 24 additions and 7 deletions
|
@ -17,6 +17,7 @@ interface SidebarNavProps extends React.HTMLAttributes<HTMLElement> {
|
|||
items: {
|
||||
href: string;
|
||||
title: string;
|
||||
icon?: React.ReactNode;
|
||||
}[];
|
||||
disabled?: boolean;
|
||||
}
|
||||
|
@ -105,7 +106,14 @@ export function SidebarNav({
|
|||
tabIndex={disabled ? -1 : undefined}
|
||||
aria-disabled={disabled}
|
||||
>
|
||||
{item.title}
|
||||
{item.icon ? (
|
||||
<div className="flex items-center space-x-2">
|
||||
{item.icon}
|
||||
<span>{item.title}</span>
|
||||
</div>
|
||||
) : (
|
||||
item.title
|
||||
)}
|
||||
</Link>
|
||||
))}
|
||||
</nav>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue