diff --git a/src/plugins/layout/index.js b/src/plugins/layout/index.js index 558734dde..fa5b01b41 100644 --- a/src/plugins/layout/index.js +++ b/src/plugins/layout/index.js @@ -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 { +class Layout extends FlipperPlugin { state = { elements: {}, initialised: false, @@ -1236,3 +1239,5 @@ export default class Layout extends FlipperPlugin { ); } } + +export default (GK.get('flipper_layout_inspector_new') ? Layout2 : Layout);