Remove the gk
Summary: We have already rolled out `support_requests_v2` to 100% of FB employees. Thus removing the unneeded checks for the GK. Reviewed By: jknoxville Differential Revision: D19770930 fbshipit-source-id: 06fcf7b6b7c1305ab1b5b3c8df344e2877251e65
This commit is contained in:
committed by
Facebook Github Bot
parent
b9fafb0e61
commit
c52ca255bb
@@ -215,7 +215,6 @@ function getTemplate(
|
||||
submenu: exportSubmenu,
|
||||
},
|
||||
];
|
||||
if (GK.get('support_requests_v2')) {
|
||||
const supportRequestSubmenu = [
|
||||
{
|
||||
label: 'Create...',
|
||||
@@ -229,7 +228,6 @@ function getTemplate(
|
||||
label: 'Support Requests',
|
||||
submenu: supportRequestSubmenu,
|
||||
});
|
||||
}
|
||||
|
||||
const template: MenuItemConstructorOptions[] = [
|
||||
{
|
||||
|
||||
@@ -197,14 +197,12 @@ type DispatchFromProps = {
|
||||
|
||||
type Props = OwnProps & StateFromProps & DispatchFromProps;
|
||||
type State = {
|
||||
showSupportForm: boolean;
|
||||
showWatchDebugRoot: boolean;
|
||||
showAllPlugins: boolean;
|
||||
};
|
||||
|
||||
class MainSidebar2 extends PureComponent<Props, State> {
|
||||
state: State = {
|
||||
showSupportForm: GK.get('support_requests_v2'),
|
||||
showWatchDebugRoot: GK.get('watch_team_flipper_clientless_access'),
|
||||
showAllPlugins: false,
|
||||
};
|
||||
@@ -332,8 +330,7 @@ class MainSidebar2 extends PureComponent<Props, State> {
|
||||
{device.source ? 'Imported device' : 'Archived device'}
|
||||
</Info>
|
||||
</ListItem>
|
||||
{this.state.showSupportForm &&
|
||||
(device as ArchivedDevice).supportRequestDetails && (
|
||||
{(device as ArchivedDevice).supportRequestDetails && (
|
||||
<ListItem
|
||||
active={supportRequestDetailsactive}
|
||||
onClick={() => setStaticView(SupportRequestDetails)}>
|
||||
|
||||
@@ -52,13 +52,6 @@ function MainSidebarUtilsSection({
|
||||
}: Props) {
|
||||
const showWatchDebugRoot = GK.get('watch_team_flipper_clientless_access');
|
||||
|
||||
const hasSeenSupportForm = useRef(false);
|
||||
const showSupportForm =
|
||||
GK.get('support_requests_v2') || hasSeenSupportForm.current;
|
||||
if (showSupportForm) {
|
||||
hasSeenSupportForm.current = true;
|
||||
}
|
||||
|
||||
return (
|
||||
<div style={{flexShrink: 0, borderTop: `1px solid ${colors.blackAlpha10}`}}>
|
||||
{showWatchDebugRoot &&
|
||||
@@ -81,8 +74,7 @@ function MainSidebarUtilsSection({
|
||||
);
|
||||
})()}
|
||||
<RenderNotificationsEntry />
|
||||
{showSupportForm &&
|
||||
(function() {
|
||||
{(function() {
|
||||
const active = isStaticViewActive(staticView, SupportRequestFormV2);
|
||||
return (
|
||||
<ListItem
|
||||
|
||||
Reference in New Issue
Block a user