Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement/search bar flint #3

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
wrap app with context provider
Signed-off-by: Eric <menwe@amazon.com>
mengweieric committed Feb 22, 2024
commit 68e0c94c008fdf2ea721bf474f819a9f6ab524e1
35 changes: 24 additions & 11 deletions public/components/index.tsx
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@ import { QueryManager } from 'common/query_manager';
import { AppMountParameters, CoreStart } from '../../../../src/core/public';
import { AppPluginStartDependencies, SetupDependencies } from '../types';
import { App } from './app';
import { DashboardsObservabilityContextProvider } from './event_analytics/explorer/context/context';

export const Observability = (
CoreStartProp: CoreStart,
@@ -22,18 +23,30 @@ export const Observability = (
startPage: string,
dataSourcePluggables
) => {

ReactDOM.render(
<App
CoreStartProp={CoreStartProp}
DepsStart={DepsStart}
pplService={pplService}
dslService={dslService}
savedObjects={savedObjects}
timestampUtils={timestampUtils}
queryManager={queryManager}
startPage={startPage}
dataSourcePluggables={dataSourcePluggables}
/>,
<DashboardsObservabilityContextProvider services={{
...CoreStartProp,
...DepsStart,
pplService,
dslService,
queryManager,
savedObjects,
timestampUtils,
dataSourcePluggables,
}}>
<App
CoreStartProp={CoreStartProp}
DepsStart={DepsStart}
pplService={pplService}
dslService={dslService}
savedObjects={savedObjects}
timestampUtils={timestampUtils}
queryManager={queryManager}
startPage={startPage}
dataSourcePluggables={dataSourcePluggables}
/>
</DashboardsObservabilityContextProvider>,
AppMountParametersProp.element
);