Don't show "Show more/less" menu option in the sidebar if no more plugins are available
Summary: When all the plugins are selected, "Show more/less" menu option in the sidebar should not be shown Reviewed By: passy Differential Revision: D19164369 fbshipit-source-id: 50bec130e80c14aea2b4565e7659409d879e585c
This commit is contained in:
committed by
Facebook Github Bot
parent
bacb1958fc
commit
075b0905d3
@@ -328,6 +328,7 @@ class MainSidebar extends PureComponent<Props, State> {
|
||||
onFavorite,
|
||||
)}
|
||||
<ListItem>
|
||||
{favoritePlugins.length === allPlugins.length ? null : (
|
||||
<SidebarButton
|
||||
small
|
||||
compact
|
||||
@@ -346,6 +347,7 @@ class MainSidebar extends PureComponent<Props, State> {
|
||||
}}
|
||||
/>
|
||||
</SidebarButton>
|
||||
)}
|
||||
</ListItem>
|
||||
</>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user