From 1992237ce546947fb4c662fcf73690085790a387 Mon Sep 17 00:00:00 2001 From: MystiPanda Date: Sun, 10 Mar 2024 21:15:22 +0800 Subject: [PATCH] chore: Add Default value --- src/components/layout/layout-item.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/layout/layout-item.tsx b/src/components/layout/layout-item.tsx index a00c5d97..82ec8b19 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 } = verge ?? {}; + const { menu_icon = "monochrome" } = verge ?? {}; const resolved = useResolvedPath(to); const match = useMatch({ path: resolved.pathname, end: true }); const navigate = useNavigate();