auto close menus on open guide
This commit is contained in:
@@ -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
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user