diff --git a/dashboard/src/features/sidebar/sidebar.tsx b/dashboard/src/features/sidebar/sidebar.tsx index e03a235..6aa79b8 100644 --- a/dashboard/src/features/sidebar/sidebar.tsx +++ b/dashboard/src/features/sidebar/sidebar.tsx @@ -1,4 +1,4 @@ -import { Sidebar, SidebarItem } from "@marzneshin/components"; +import { Sidebar, SidebarItem, Tooltip, TooltipContent, TooltipTrigger } from "@marzneshin/components"; import { useRouterState } from "@tanstack/react-router"; import { FC, useEffect } from "react"; import { sidebarItems } from "."; @@ -31,12 +31,19 @@ export const DashboardSidebar: FC = ({ collapsed, setColl
{key} {sidebarItems[key].map((item: SidebarItem, i) => ( - + + + + + + {collapsed && item.title} + + ) )}
diff --git a/dashboard/src/routes/__root.tsx b/dashboard/src/routes/__root.tsx index 6ea011d..f972b86 100644 --- a/dashboard/src/routes/__root.tsx +++ b/dashboard/src/routes/__root.tsx @@ -1,3 +1,4 @@ +import { TooltipProvider } from '@marzneshin/components'; import { ThemeProvider } from '@marzneshin/features/theme-switch' import { queryClient } from '@marzneshin/utils'; import { QueryClientProvider } from '@tanstack/react-query'; @@ -17,10 +18,12 @@ export const Route = createRootRoute({ component: () => ( - - - - + + + + + + ), diff --git a/dashboard/src/routes/_dashboard.tsx b/dashboard/src/routes/_dashboard.tsx index e483770..7baa397 100644 --- a/dashboard/src/routes/_dashboard.tsx +++ b/dashboard/src/routes/_dashboard.tsx @@ -6,7 +6,6 @@ import { ResizablePanel, ResizablePanelGroup, Toaster, - TooltipProvider } from '@marzneshin/components' import { NavigationDirectory } from '@marzneshin/components/nav-dir'; import { useAuth } from '@marzneshin/features/auth' @@ -50,12 +49,10 @@ export const DashboardLayout = () => { - -
- - -
-
+
+ + +
) : (