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> {
|
class MainSidebar extends PureComponent<Props, State> {
|
||||||
state: State = {
|
state: State = {
|
||||||
showSupportForm: GK.get('flipper_support_requests'),
|
showSupportForm: GK.get('support_requests_v2'),
|
||||||
showAllPlugins: false,
|
showAllPlugins: false,
|
||||||
};
|
};
|
||||||
static getDerivedStateFromProps(props: Props, state: State) {
|
static getDerivedStateFromProps(props: Props, state: State) {
|
||||||
@@ -408,14 +408,11 @@ class MainSidebar extends PureComponent<Props, State> {
|
|||||||
)}
|
)}
|
||||||
{this.state.showSupportForm &&
|
{this.state.showSupportForm &&
|
||||||
(function() {
|
(function() {
|
||||||
const supportRequestFormImpl = GK.get('support_requests_v2')
|
const active = staticView && staticView === SupportRequestFormV2;
|
||||||
? SupportRequestFormV2
|
|
||||||
: SupportRequestFormManager;
|
|
||||||
const active = staticView && staticView === supportRequestFormImpl;
|
|
||||||
return (
|
return (
|
||||||
<ListItem
|
<ListItem
|
||||||
active={active}
|
active={active}
|
||||||
onClick={() => setStaticView(supportRequestFormImpl)}>
|
onClick={() => setStaticView(SupportRequestFormV2)}>
|
||||||
<PluginIcon
|
<PluginIcon
|
||||||
color={colors.light50}
|
color={colors.light50}
|
||||||
name={'app-dailies'}
|
name={'app-dailies'}
|
||||||
|
|||||||
Reference in New Issue
Block a user