Skip to content

Commit

Permalink
hide "toggle r.sidebar" instead of disabling it
Browse files Browse the repository at this point in the history
Reviewed By: LukeDefeo

Differential Revision: D47669377

fbshipit-source-id: 4bac4e8778576f69405c449021a438eff88b6abf
  • Loading branch information
antonk52 authored and facebook-github-bot committed Jul 21, 2023
1 parent 4ec544f commit 7b06daa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion desktop/flipper-ui-core/src/sandy-chrome/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}}
Expand Down

0 comments on commit 7b06daa

Please sign in to comment.