add GK
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:
committed by
Facebook Github Bot
parent
a8a1869bc8
commit
9bf41f7bb7
@@ -26,10 +26,13 @@ import {
|
|||||||
Popover,
|
Popover,
|
||||||
ToggleButton,
|
ToggleButton,
|
||||||
SidebarExtensions,
|
SidebarExtensions,
|
||||||
|
GK,
|
||||||
} from 'flipper';
|
} from 'flipper';
|
||||||
// $FlowFixMe perf_hooks is a new API in node
|
// $FlowFixMe perf_hooks is a new API in node
|
||||||
import {performance} from 'perf_hooks';
|
import {performance} from 'perf_hooks';
|
||||||
|
|
||||||
|
import Layout2 from './layout2/index.js';
|
||||||
|
|
||||||
import type {TrackType} from '../../fb-interfaces/Logger.js';
|
import type {TrackType} from '../../fb-interfaces/Logger.js';
|
||||||
|
|
||||||
import debounce from 'lodash.debounce';
|
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 = {
|
state = {
|
||||||
elements: {},
|
elements: {},
|
||||||
initialised: false,
|
initialised: false,
|
||||||
@@ -1236,3 +1239,5 @@ export default class Layout extends FlipperPlugin<InspectorState> {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export default (GK.get('flipper_layout_inspector_new') ? Layout2 : Layout);
|
||||||
|
|||||||
Reference in New Issue
Block a user