mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
# Backport This will backport the following commits from `main` to `8.x`: - [[Feature Flags Example Plugin] Change ctx provider (#201097)](https://github.com/elastic/kibana/pull/201097) <!--- Backport version: 8.9.8 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Alejandro Fernández Haro","email":"alejandro.haro@elastic.co"},"sourceCommit":{"committedDate":"2024-11-21T12:01:02Z","message":"[Feature Flags Example Plugin] Change ctx provider (#201097)","sha":"f0262080c806077876604569f2e7fd8a7082cf00","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["chore","Team:Core","release_note:skip","v9.0.0","backport:prev-minor"],"number":201097,"url":"https://github.com/elastic/kibana/pull/201097","mergeCommit":{"message":"[Feature Flags Example Plugin] Change ctx provider (#201097)","sha":"f0262080c806077876604569f2e7fd8a7082cf00"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/201097","number":201097,"mergeCommit":{"message":"[Feature Flags Example Plugin] Change ctx provider (#201097)","sha":"f0262080c806077876604569f2e7fd8a7082cf00"}}]}] BACKPORT--> Co-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>
This commit is contained in:
parent
6829a4dce6
commit
85fd532617
2 changed files with 9 additions and 13 deletions
|
@ -10,22 +10,19 @@
|
|||
import React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import { AppMountParameters, CoreStart } from '@kbn/core/public';
|
||||
import { KibanaPageTemplate } from '@kbn/shared-ux-page-kibana-template';
|
||||
import { KibanaRootContextProvider } from '@kbn/react-kibana-context-root';
|
||||
import { KibanaRenderContextProvider } from '@kbn/react-kibana-context-render';
|
||||
import { FeatureFlagsExampleApp } from './components/app';
|
||||
|
||||
export const renderApp = (coreStart: CoreStart, { element }: AppMountParameters) => {
|
||||
const { notifications, http, featureFlags } = coreStart;
|
||||
ReactDOM.render(
|
||||
<KibanaRootContextProvider {...coreStart}>
|
||||
<KibanaPageTemplate>
|
||||
<FeatureFlagsExampleApp
|
||||
featureFlags={featureFlags}
|
||||
notifications={notifications}
|
||||
http={http}
|
||||
/>
|
||||
</KibanaPageTemplate>
|
||||
</KibanaRootContextProvider>,
|
||||
<KibanaRenderContextProvider {...coreStart}>
|
||||
<FeatureFlagsExampleApp
|
||||
featureFlags={featureFlags}
|
||||
notifications={notifications}
|
||||
http={http}
|
||||
/>
|
||||
</KibanaRenderContextProvider>,
|
||||
element
|
||||
);
|
||||
|
||||
|
|
|
@ -14,11 +14,10 @@
|
|||
"exclude": ["target/**/*"],
|
||||
"kbn_references": [
|
||||
"@kbn/core",
|
||||
"@kbn/shared-ux-page-kibana-template",
|
||||
"@kbn/react-kibana-context-root",
|
||||
"@kbn/core-feature-flags-server",
|
||||
"@kbn/core-plugins-server",
|
||||
"@kbn/config-schema",
|
||||
"@kbn/developer-examples-plugin",
|
||||
"@kbn/react-kibana-context-render",
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue