diff --git a/src/components/layout/layout-item.tsx b/src/components/layout/layout-item.tsx index e1c233ba0..fdc2e1539 100644 --- a/src/components/layout/layout-item.tsx +++ b/src/components/layout/layout-item.tsx @@ -6,11 +6,11 @@ import { alpha, ListItem, ListItemButton, - ListItemText, ListItemIcon, + ListItemText, } from "@mui/material"; import type { CSSProperties, ReactNode } from "react"; -import { useMatch, useResolvedPath, useNavigate } from "react-router"; +import { useMatch, useNavigate, useResolvedPath } from "react-router"; import { useVerge } from "@/hooks/use-verge"; @@ -58,7 +58,7 @@ export const LayoutItem = (props: Props) => { paddingLeft: 1, paddingRight: 1, marginRight: 1.25, - cursor: sortable && !sortable.disabled ? "grab" : "pointer", + cursor: "pointer", "& .MuiListItemText-primary": { color: "text.primary", fontWeight: "700", @@ -70,7 +70,6 @@ export const LayoutItem = (props: Props) => { ? alpha(primary.main, 0.15) : alpha(primary.main, 0.35); const color = mode === "light" ? "#1f1f1f" : "#ffffff"; - return { "&.Mui-selected": { bgcolor }, "&.Mui-selected:hover": { bgcolor }, @@ -79,15 +78,29 @@ export const LayoutItem = (props: Props) => { }, ]} onClick={() => navigate(to)} - {...(attributes ?? {})} - {...(listeners ?? {})} > {(menu_icon === "monochrome" || !menu_icon) && ( - + {icon[0]} )} - {menu_icon === "colorful" && {icon[1]}} + {menu_icon === "colorful" && ( + + {icon[1]} + + )}