mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-06 12:23:44 +08:00
chore: Add Default value
This commit is contained in:
parent
8f247b0f73
commit
1992237ce5
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user