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,
|
onFavorite,
|
||||||
)}
|
)}
|
||||||
<ListItem>
|
<ListItem>
|
||||||
|
{favoritePlugins.length === allPlugins.length ? null : (
|
||||||
<SidebarButton
|
<SidebarButton
|
||||||
small
|
small
|
||||||
compact
|
compact
|
||||||
@@ -346,6 +347,7 @@ class MainSidebar extends PureComponent<Props, State> {
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</SidebarButton>
|
</SidebarButton>
|
||||||
|
)}
|
||||||
</ListItem>
|
</ListItem>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user