Enable power search as default experience for users passing GK
Reviewed By: antonk52 Differential Revision: D49822508 fbshipit-source-id: f280f0032a6292fbc8c73a36a8b47e35ffb4e7fd
This commit is contained in:
committed by
Facebook GitHub Bot
parent
84bb47655e
commit
3c09ac8b2b
@@ -104,13 +104,22 @@ class UIPluginInitializer extends AbstractPluginInitializer {
|
|||||||
|
|
||||||
let uiPluginInitializer: UIPluginInitializer;
|
let uiPluginInitializer: UIPluginInitializer;
|
||||||
export default async (store: Store, _logger: Logger) => {
|
export default async (store: Store, _logger: Logger) => {
|
||||||
|
let FlipperPlugin = FlipperPluginSDK;
|
||||||
|
if (getRenderHostInstance().GK('flipper_power_search')) {
|
||||||
|
FlipperPlugin = {
|
||||||
|
...FlipperPlugin,
|
||||||
|
MasterDetail: FlipperPlugin._MasterDetailWithPowerSearch as any,
|
||||||
|
DataTable: FlipperPlugin._DataTableWithPowerSearch as any,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
setGlobalObject({
|
setGlobalObject({
|
||||||
React,
|
React,
|
||||||
ReactDOM,
|
ReactDOM,
|
||||||
ReactDOMClient,
|
ReactDOMClient,
|
||||||
ReactIs,
|
ReactIs,
|
||||||
Flipper: deprecatedExports,
|
Flipper: deprecatedExports,
|
||||||
FlipperPlugin: FlipperPluginSDK,
|
FlipperPlugin,
|
||||||
Immer,
|
Immer,
|
||||||
antd,
|
antd,
|
||||||
emotion_styled,
|
emotion_styled,
|
||||||
|
|||||||
Reference in New Issue
Block a user