diff --git a/src/components/layout/layout-item.tsx b/src/components/layout/layout-item.tsx index 82ec8b19..8d5e841c 100644 --- a/src/components/layout/layout-item.tsx +++ b/src/components/layout/layout-item.tsx @@ -15,7 +15,7 @@ interface Props { export const LayoutItem = (props: Props) => { const { to, children, icon } = props; const { verge } = useVerge(); - const { menu_icon = "monochrome" } = verge ?? {}; + const { menu_icon } = verge ?? {}; const resolved = useResolvedPath(to); const match = useMatch({ path: resolved.pathname, end: true }); const navigate = useNavigate(); @@ -52,9 +52,12 @@ export const LayoutItem = (props: Props) => { ]} onClick={() => navigate(to)} > - {menu_icon === "monochrome" && ( - {icon[0]} - )} + {menu_icon === "monochrome" || + (!menu_icon && ( + + {icon[0]} + + ))} {menu_icon === "colorful" && {icon[1]}}