Skip to content

Commit

Permalink
fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasneirynck committed Nov 18, 2021
1 parent 737ee00 commit 35bdd1d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x-pack/plugins/maps/public/render_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { render, unmountComponentAtNode } from 'react-dom';
import { Router, Switch, Route, Redirect, RouteComponentProps } from 'react-router-dom';
import { i18n } from '@kbn/i18n';
import type { AppMountParameters } from 'kibana/public';
import { KibanaThemeProvider } from '../../kibana_react/public';
import { KibanaThemeProvider } from '../../../../src/plugins/kibana_react/public';
import {
getCoreChrome,
getCoreI18n,
Expand Down Expand Up @@ -63,7 +63,7 @@ function setAppChrome() {
}

export async function renderApp(
{ element, history, onAppLeave, setHeaderActionMenu }: AppMountParameters,
{ element, history, onAppLeave, setHeaderActionMenu, theme$ }: AppMountParameters,
AppUsageTracker: React.FC
) {
goToSpecifiedPath = (path) => history.push(path);
Expand Down Expand Up @@ -109,7 +109,7 @@ export async function renderApp(
render(
<AppUsageTracker>
<I18nContext>
<KibanaThemeProvider>
<KibanaThemeProvider theme$={theme$}>
<Router history={history}>
<Switch>
<Route path={`/map/:savedMapId`} render={renderMapApp} />
Expand Down

0 comments on commit 35bdd1d

Please sign in to comment.