Преглед на файлове

chore: Add Default value

MystiPanda преди 1 година
родител
ревизия
8ec19e058f
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/components/layout/layout-item.tsx

+ 1 - 1
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();