chore: Add Default value

This commit is contained in:
MystiPanda 2024-03-10 21:15:22 +08:00
parent a5c4549722
commit 8ec19e058f

View File

@ -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();