ProfileMenuButton: fix open settings in new page

This commit is contained in:
thislight 2024-11-16 22:26:16 +08:00
parent 9dfcfa3868
commit ab37a280e7
No known key found for this signature in database
GPG key ID: FCFE5192241CCD4E

View file

@ -51,7 +51,7 @@ const ProfileMenuButton: ParentComponent<{
props.onClick?.();
};
const inf = () => props.profile?.account.inf
const inf = () => props.profile?.account.inf;
const onClose = () => {
props.onClick?.();
@ -130,7 +130,7 @@ const ProfileMenuButton: ParentComponent<{
{props.children}
<Divider />
</Show>
<MenuItem component={A} href="/settings" onClick={onClose}>
<MenuItem component={A} href="/settings">
<ListItemIcon>
<SettingsIcon />
</ListItemIcon>