From f21c3bfb12a95d681ef719074f90191c2c0b90c6 Mon Sep 17 00:00:00 2001 From: sianida26 Date: Fri, 29 Mar 2024 03:21:57 +0700 Subject: [PATCH] lint --- src/modules/dashboard/components/SidebarMenuItem.tsx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/modules/dashboard/components/SidebarMenuItem.tsx b/src/modules/dashboard/components/SidebarMenuItem.tsx index bc92762..a0c9a9d 100644 --- a/src/modules/dashboard/components/SidebarMenuItem.tsx +++ b/src/modules/dashboard/components/SidebarMenuItem.tsx @@ -6,9 +6,7 @@ import { Group, ThemeIcon, UnstyledButton, - alpha, rem, - useMantineTheme, } from "@mantine/core"; import { TbChevronRight } from "react-icons/tb"; import * as TbIcons from "react-icons/tb"; @@ -37,8 +35,6 @@ export default function MenuItem({ menu }: Props) { const pathname = usePathname() - const theme = useMantineTheme(); - const [opened, setOpened] = useState(menu.children?.some(child => areURLsSame(`${dashboardConfig.baseRoute}${child.link}`, pathname)) ?? false); const toggleOpenMenu = () => {