Remove old support form GK
Summary: Removes old GK of the flipper support form Reviewed By: passy Differential Revision: D18783129 fbshipit-source-id: dcb55abf4af863e25273648e0482c00e3d16e322
This commit is contained in:
committed by
Facebook Github Bot
parent
35ddc25937
commit
d12733f3fd
@@ -261,7 +261,7 @@ type State = {
|
||||
};
|
||||
class MainSidebar extends PureComponent<Props, State> {
|
||||
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<Props, State> {
|
||||
)}
|
||||
{this.state.showSupportForm &&
|
||||
(function() {
|
||||
const supportRequestFormImpl = GK.get('support_requests_v2')
|
||||
? SupportRequestFormV2
|
||||
: SupportRequestFormManager;
|
||||
const active = staticView && staticView === supportRequestFormImpl;
|
||||
const active = staticView && staticView === SupportRequestFormV2;
|
||||
return (
|
||||
<ListItem
|
||||
active={active}
|
||||
onClick={() => setStaticView(supportRequestFormImpl)}>
|
||||
onClick={() => setStaticView(SupportRequestFormV2)}>
|
||||
<PluginIcon
|
||||
color={colors.light50}
|
||||
name={'app-dailies'}
|
||||
|
||||
Reference in New Issue
Block a user