Revert "Fix put back sidebar trigger"

This reverts commit 4123db21c5.
This commit is contained in:
gearnode
2025-03-16 21:57:01 +01:00
parent 257ea563a9
commit 93a3ab1517
4 changed files with 15 additions and 26 deletions

View File

@@ -21,14 +21,12 @@ export function AppSidebarShell({
}: AppSidebarShellProps) {
return (
<Sidebar variant="sidebar" {...props}>
<div className="p-4">
<SidebarHeader>{organizationSwitcher}</SidebarHeader>
<SidebarContent>
{navMain}
<NavSecondary className="mt-auto" />
</SidebarContent>
<SidebarFooter>{navUser}</SidebarFooter>
</div>
<SidebarHeader>{organizationSwitcher}</SidebarHeader>
<SidebarContent>
{navMain}
<NavSecondary className="mt-auto" />
</SidebarContent>
<SidebarFooter>{navUser}</SidebarFooter>
</Sidebar>
);
}

View File

@@ -1,7 +1,7 @@
import * as React from "react";
import { Slot } from "@radix-ui/react-slot";
import { VariantProps, cva } from "class-variance-authority";
import { PanelLeft, PanelLeftClose } from "lucide-react";
import { PanelLeft } from "lucide-react";
import { useIsMobile } from "@/hooks/use-mobile";
import { cn } from "@/lib/utils";
@@ -261,7 +261,7 @@ const SidebarTrigger = React.forwardRef<
React.ElementRef<typeof Button>,
React.ComponentProps<typeof Button>
>(({ className, onClick, ...props }, ref) => {
const { toggleSidebar, open } = useSidebar();
const { toggleSidebar } = useSidebar();
return (
<Button
@@ -276,11 +276,7 @@ const SidebarTrigger = React.forwardRef<
}}
{...props}
>
{open ? (
<PanelLeftClose fontWeight={400} className="text-gray-500" />
) : (
<PanelLeft fontWeight={400} className="text-gray-500" />
)}
<PanelLeft />
<span className="sr-only">Toggle Sidebar</span>
</Button>
);