Show support form in all the cases

Summary: Earlier we used to show the support form only when selected device was android. But this won't work because, I am planning to add a deeplink support for the form, so that the user can directly open flipper from workplace. Because of this we will have to show the litho support form always. In case  when the selected device is not android, we will show an error screen with possible solutions to open the litho support form.

Reviewed By: passy

Differential Revision: D17787686

fbshipit-source-id: 13e15041238d8746f947563bb3c2ea3cec205a5e
This commit is contained in:
Pritesh Nandgaonkar
2019-10-08 11:58:25 -07:00
committed by Facebook Github Bot
parent ee13541587
commit e5ddb5d709

View File

@@ -256,10 +256,6 @@ class MainSidebar extends PureComponent<Props> {
numNotifications,
} = this.props;
let {clients, uninitializedClients} = this.props;
const showLithoForm =
GK.get('flipper_support_requests') &&
selectedDevice &&
selectedDevice.os === 'Android';
clients = clients
.filter(
(client: Client) =>
@@ -306,7 +302,7 @@ class MainSidebar extends PureComponent<Props> {
</PluginName>
</ListItem>
)}
{showLithoForm && (
{GK.get('flipper_support_requests') && (
<ListItem
active={staticView != null && staticView === SupportRequestForm}
onClick={() => setStaticView(SupportRequestForm)}>