From d12733f3fd30ba1a28a1a7156521b07d57d90ac4 Mon Sep 17 00:00:00 2001 From: Pritesh Nandgaonkar Date: Tue, 3 Dec 2019 10:46:24 -0800 Subject: [PATCH] Remove old support form GK Summary: Removes old GK of the flipper support form Reviewed By: passy Differential Revision: D18783129 fbshipit-source-id: dcb55abf4af863e25273648e0482c00e3d16e322 --- src/chrome/MainSidebar.tsx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/chrome/MainSidebar.tsx b/src/chrome/MainSidebar.tsx index 8a93d5c87..66a671e17 100644 --- a/src/chrome/MainSidebar.tsx +++ b/src/chrome/MainSidebar.tsx @@ -261,7 +261,7 @@ type State = { }; class MainSidebar extends PureComponent { state: State = { - showSupportForm: GK.get('flipper_support_requests'), + showSupportForm: GK.get('support_requests_v2'), showAllPlugins: false, }; static getDerivedStateFromProps(props: Props, state: State) { @@ -408,14 +408,11 @@ class MainSidebar extends PureComponent { )} {this.state.showSupportForm && (function() { - const supportRequestFormImpl = GK.get('support_requests_v2') - ? SupportRequestFormV2 - : SupportRequestFormManager; - const active = staticView && staticView === supportRequestFormImpl; + const active = staticView && staticView === SupportRequestFormV2; return ( setStaticView(supportRequestFormImpl)}> + onClick={() => setStaticView(SupportRequestFormV2)}>