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 = () => {