auto close menus on open guide

This commit is contained in:
2026-07-17 14:04:24 +08:00
parent fe59040958
commit 9b3e2f279f
2 changed files with 12 additions and 2 deletions
@@ -168,7 +168,10 @@ function SidebarAccountMenu({
role="menuitem"
className={sidebarMenuItemClass}
onClick={
() => showNotice('使用指南')
() =>{
onClose();
showNotice('使用指南');
}
// TODO doc is not ready
}
>
@@ -326,7 +329,8 @@ export function Sidebar({
title="帮助"
className={sidebarHelpButtonClass}
onClick={() => {
onNoticeRequest('使用指南');
closeMenus();
onNoticeRequest('使用指南');
// TODO open the guide
// TODO doc is not ready
}}