diff --git a/dashboard/src/features/sidebar/sidebar.tsx b/dashboard/src/features/sidebar/sidebar.tsx index 6aa79b8..28389b5 100644 --- a/dashboard/src/features/sidebar/sidebar.tsx +++ b/dashboard/src/features/sidebar/sidebar.tsx @@ -1,21 +1,21 @@ -import { Sidebar, SidebarItem, Tooltip, TooltipContent, TooltipTrigger } from "@marzneshin/components"; +import { Sidebar, type SidebarItem } from "@marzneshin/components"; import { useRouterState } from "@tanstack/react-router"; -import { FC, useEffect } from "react"; +import type { FC } from "react"; import { sidebarItems } from "."; import { cn } from "@marzneshin/utils"; - interface DashboardSidebarProps { collapsed: boolean; setCollapsed: (state: boolean) => void; } -export const DashboardSidebar: FC = ({ collapsed, setCollapsed }) => { +export const DashboardSidebar: FC = ({ + collapsed, + setCollapsed, +}) => { const router = useRouterState(); const currentActivePath = router.location.pathname; - useEffect(() => { }, [collapsed]); - return ( - ) -} + ); +};