hide "toggle r.sidebar" instead of disabling it
Reviewed By: LukeDefeo Differential Revision: D47669377 fbshipit-source-id: 4bac4e8778576f69405c449021a438eff88b6abf
This commit is contained in:
committed by
Facebook GitHub Bot
parent
4ec544f9dd
commit
7b06daa913
@@ -276,13 +276,16 @@ function RightSidebarToggleButton() {
|
||||
(state) => state.application.rightSidebarVisible,
|
||||
);
|
||||
|
||||
if (!rightSidebarAvailable) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<NavbarButton
|
||||
icon={LayoutOutlined}
|
||||
flipIcon
|
||||
label="Toggle R.Sidebar"
|
||||
toggled={!rightSidebarVisible}
|
||||
disabled={!rightSidebarAvailable}
|
||||
onClick={() => {
|
||||
dispatch(toggleRightSidebarVisible());
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user