diff --git a/x-pack/plugins/data_quality/public/application.tsx b/x-pack/plugins/data_quality/public/application.tsx index f022ab6d0efc0..1c54e1d6003a8 100644 --- a/x-pack/plugins/data_quality/public/application.tsx +++ b/x-pack/plugins/data_quality/public/application.tsx @@ -12,10 +12,12 @@ import ReactDOM from 'react-dom'; import { KibanaRenderContextProvider } from '@kbn/react-kibana-context-render'; import { Route, Router, Routes } from '@kbn/shared-ux-router'; import { PerformanceContextProvider } from '@kbn/ebt-tools'; +import { useExecutionContext } from '@kbn/kibana-react-plugin/public'; import { KbnUrlStateStorageFromRouterProvider } from './utils/kbn_url_state_context'; import { useKibanaContextForPluginProvider } from './utils/use_kibana'; import { AppPluginStartDependencies, DataQualityPluginStart } from './types'; import { DatasetQualityRoute } from './routes'; +import { PLUGIN_ID } from '../common'; export const renderApp = ( core: CoreStart, @@ -33,6 +35,33 @@ export const renderApp = ( }; }; +const AppWithExecutionContext = ({ + core, + params, +}: { + core: CoreStart; + params: ManagementAppMountParams; +}) => { + const { executionContext } = core; + + useExecutionContext(executionContext, { + type: 'application', + page: PLUGIN_ID, + }); + + return ( + + + + + } /> + + + + + ); +}; + interface AppProps { core: CoreStart; plugins: AppPluginStartDependencies; @@ -51,15 +80,7 @@ const App = ({ core, plugins, pluginStart, params }: AppProps) => { return ( - - - - - } /> - - - - + );