Skip to content

Commit

Permalink
🐛 Fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
dej611 committed May 22, 2023
1 parent 8a081dc commit 559aa7a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion x-pack/examples/testing_embedded_lens/public/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,9 @@ export const App = (props: {
const [overrides, setOverrides] = useState<AllOverrides | undefined>();

return (
<KibanaContextProvider services={{ uiSettings: props.core.uiSettings }}>
<KibanaContextProvider
services={{ uiSettings: props.core.uiSettings, settings: props.core.settings }}
>
<EuiPageTemplate fullHeight template="empty">
<EuiFlexGroup
className="eui-fullHeight"
Expand Down
2 changes: 2 additions & 0 deletions x-pack/examples/testing_embedded_lens/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { Plugin, CoreSetup, AppNavLinkStatus } from '@kbn/core/public';
import { DataPublicPluginStart } from '@kbn/data-plugin/public';
import { LensPublicStart } from '@kbn/lens-plugin/public';
import { DeveloperExamplesSetup } from '@kbn/developer-examples-plugin/public';
import { SettingsStart } from '@kbn/core-ui-settings-browser';
import { mount } from './mount';
import image from './image.png';

Expand All @@ -19,6 +20,7 @@ export interface SetupDependencies {
export interface StartDependencies {
data: DataPublicPluginStart;
lens: LensPublicStart;
settings: SettingsStart;
}

export class TestingEmbeddedLensPlugin
Expand Down
1 change: 1 addition & 0 deletions x-pack/examples/testing_embedded_lens/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@
"@kbn/data-views-plugin",
"@kbn/ui-actions-plugin",
"@kbn/kibana-react-plugin",
"@kbn/core-ui-settings-browser",
]
}

0 comments on commit 559aa7a

Please sign in to comment.