diff --git a/x-pack/plugins/endpoint/public/applications/endpoint/index.tsx b/x-pack/plugins/endpoint/public/applications/endpoint/index.tsx index 65474887f3e272..47fba63d2038f3 100644 --- a/x-pack/plugins/endpoint/public/applications/endpoint/index.tsx +++ b/x-pack/plugins/endpoint/public/applications/endpoint/index.tsx @@ -17,8 +17,8 @@ import { Route, Router, Switch } from 'react-router-dom'; export function renderApp(coreStart: CoreStart, { element }: AppMountParameters) { coreStart.http.get('/api/endpoint/hello-world'); - const history = createHashHistory() - ReactDOM.render(, element); + const history = createHashHistory(); + ReactDOM.render(, element); return () => { ReactDOM.unmountComponentAtNode(element); @@ -29,22 +29,33 @@ interface RouterProps { history: History; } -const AppRoot: React.FC = React.memo(({history}) => ( +const AppRoot: React.FC = React.memo(({ history }) => ( - - - ( + + + (

- )} /> - ( + )} + /> + (

- )} /> - } /> -
+ )} + /> + ( + + )} + /> +
));