release: v4.1.0

This commit is contained in:
Amruth Pillai
2024-05-05 14:55:06 +02:00
parent 68252c35fc
commit e87b05a93a
282 changed files with 11461 additions and 10713 deletions

View File

@ -27,12 +27,12 @@ const ActiveIndicator = ({ className }: Props) => (
/>
);
interface SidebarItem {
type SidebarItem = {
path: string;
name: string;
shortcut?: string;
icon: React.ReactNode;
}
};
type SidebarItemProps = SidebarItem & {
onClick?: () => void;
@ -46,11 +46,11 @@ const SidebarItem = ({ path, name, shortcut, icon, onClick }: SidebarItemProps)
asChild
size="lg"
variant="ghost"
onClick={onClick}
className={cn(
"h-auto justify-start px-4 py-3",
isActive && "pointer-events-none bg-secondary/50 text-secondary-foreground",
)}
onClick={onClick}
>
<Link to={path}>
<div className="mr-3">{icon}</div>