From 5023d4d129737cf6e0609592e5606a20a0f3728b Mon Sep 17 00:00:00 2001 From: Blake Matthes Date: Sun, 2 Nov 2025 16:24:37 -0600 Subject: [PATCH] refactor(types): moved the item type to the sidebar to keep it more clean --- frontend/src/components/navBar/Admin.tsx | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/frontend/src/components/navBar/Admin.tsx b/frontend/src/components/navBar/Admin.tsx index c92c2e9..b80d190 100644 --- a/frontend/src/components/navBar/Admin.tsx +++ b/frontend/src/components/navBar/Admin.tsx @@ -1,6 +1,6 @@ import { Link } from "@tanstack/react-router"; -import { type LucideIcon, Server, Settings, User } from "lucide-react"; -import { type UserRoles, userAccess } from "../../lib/authClient"; +import { Server, Settings, User } from "lucide-react"; +import { userAccess } from "../../lib/authClient"; import { SidebarGroup, SidebarGroupContent, @@ -9,15 +9,8 @@ import { SidebarMenuButton, SidebarMenuItem, } from "../ui/sidebar"; +import type { Items } from "./SideBarNav"; -type Items = { - title: string; - url: string; - icon: LucideIcon; - role: UserRoles["role"][]; - module: string; - active: boolean; -}; export default function Admin() { const items: Items[] = [ {