mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-06 14:33:45 +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) => {
|
export const LayoutItem = (props: Props) => {
|
||||||
const { to, children, icon } = props;
|
const { to, children, icon } = props;
|
||||||
const { verge } = useVerge();
|
const { verge } = useVerge();
|
||||||
const { menu_icon } = verge ?? {};
|
const { menu_icon = "monochrome" } = verge ?? {};
|
||||||
const resolved = useResolvedPath(to);
|
const resolved = useResolvedPath(to);
|
||||||
const match = useMatch({ path: resolved.pathname, end: true });
|
const match = useMatch({ path: resolved.pathname, end: true });
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user