Summary:
Users passing the GK `flipper_layout_inspector_new` will see then new layout inspector instead of the old one.

Hopefully users won't realize that they are on the new Layout Inspector. To make them aware of it, I added a bar on the bottom linking to the support group that is used for the GK.

Reviewed By: jknoxville

Differential Revision: D14100392

fbshipit-source-id: 78d561a3ab8ac035e5b439799c395901be086b1b
This commit is contained in:
Daniel Büchele
2019-02-18 04:53:55 -08:00
committed by Facebook Github Bot
parent a8a1869bc8
commit 9bf41f7bb7

View File

@@ -26,10 +26,13 @@ import {
Popover,
ToggleButton,
SidebarExtensions,
GK,
} from 'flipper';
// $FlowFixMe perf_hooks is a new API in node
import {performance} from 'perf_hooks';
import Layout2 from './layout2/index.js';
import type {TrackType} from '../../fb-interfaces/Logger.js';
import debounce from 'lodash.debounce';
@@ -189,7 +192,7 @@ class LayoutSearchInput extends Component<
}
}
export default class Layout extends FlipperPlugin<InspectorState> {
class Layout extends FlipperPlugin<InspectorState> {
state = {
elements: {},
initialised: false,
@@ -1236,3 +1239,5 @@ export default class Layout extends FlipperPlugin<InspectorState> {
);
}
}
export default (GK.get('flipper_layout_inspector_new') ? Layout2 : Layout);