Created
January 31, 2019 14:47
-
-
Save spalger/b004091374b426ac1d0323703dae46bc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/src/legacy/core_plugins/kibana/public/home/index.js b/src/legacy/core_plugins/kibana/public/home/index.js | |
| index fc27e09447..f163353c8c 100644 | |
| --- a/src/legacy/core_plugins/kibana/public/home/index.js | |
| +++ b/src/legacy/core_plugins/kibana/public/home/index.js | |
| @@ -17,6 +17,9 @@ | |
| * under the License. | |
| */ | |
| +import React from 'react'; | |
| +import ReactDOM from 'react-dom'; | |
| + | |
| import './home.less'; | |
| import chrome from 'ui/chrome'; | |
| import routes from 'ui/routes'; | |
| @@ -48,7 +51,11 @@ function getRoute() { | |
| }, | |
| k7Breadcrumbs: () => [ | |
| { text: homeTitle }, | |
| - ] | |
| + ], | |
| + helpExtension(domElement) { | |
| + ReactDOM.render(<div>hello world</div>, domElement); | |
| + return () => ReactDOM.unmountComponentAtNode(domElement); | |
| + } | |
| }; | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment