File refactoring and react errors.

This commit is contained in:
charlesgauthereau
2025-12-21 09:59:49 +01:00
parent e953de0e06
commit 82ab2c63d6
6 changed files with 114 additions and 121 deletions
@@ -24,7 +24,7 @@ export const SidebarLogo = ({projectName}: {
return (
<div className="ml-1 flex items-center justify-center">
<Link href={"/"}>
<Link href={"/dashboard/home"}>
{state === 'collapsed' && !isMobile ? (
<Image
loading="eager"
@@ -91,7 +91,7 @@ export const SidebarMenuCustomBase = ({ baseUrl, items }: SidebarMenuCustomBaseP
<Collapsible key={index} defaultOpen className="group/group-collapsible">
<SidebarGroup>
<SidebarGroupLabel asChild>
<CollapsibleTrigger className="flex w-full items-center text-sm font-medium text-sidebar-foreground/70">
<CollapsibleTrigger disabled={group.type == "list"} className="flex w-full items-center text-sm font-medium text-sidebar-foreground/70">
{group.label}
{group.type === "collapse" && (
<ChevronDown className="ml-auto h-4 w-4 transition-transform group-data-[state=open]/group-collapsible:rotate-180" />