mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
Updates deprecated EUI components in locators example plugins (#163405)
## Summary
Partially addresses https://github.com/elastic/kibana/issues/161425
New look:
<img width="2017" alt="image"
src="313fe761
-2060-4b7b-b5d3-3f655d2cec02">
This commit is contained in:
parent
7025a7bdab
commit
c52327492f
3 changed files with 29 additions and 28 deletions
|
@ -9,13 +9,10 @@
|
|||
import React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
|
||||
import { EuiPageBody } from '@elastic/eui';
|
||||
import { EuiPageContent_Deprecated as EuiPageContent } from '@elastic/eui';
|
||||
import { EuiPageContentBody_Deprecated as EuiPageContentBody } from '@elastic/eui';
|
||||
import { EuiPageBody, EuiPageTemplate, EuiPageSection, EuiText } from '@elastic/eui';
|
||||
import { Redirect, useLocation } from 'react-router-dom';
|
||||
import { Router, Routes as RouterRoutes, Route } from '@kbn/shared-ux-router';
|
||||
import { createBrowserHistory } from 'history';
|
||||
import { EuiText } from '@elastic/eui';
|
||||
import { AppMountParameters } from '@kbn/core/public';
|
||||
|
||||
function useQuery() {
|
||||
|
@ -38,8 +35,8 @@ export const Routes: React.FC<{}> = () => {
|
|||
|
||||
return (
|
||||
<EuiPageBody>
|
||||
<EuiPageContent>
|
||||
<EuiPageContentBody>
|
||||
<EuiPageTemplate.Section>
|
||||
<EuiPageSection>
|
||||
<RouterRoutes>
|
||||
<Route path="/hello">
|
||||
<HelloPage
|
||||
|
@ -49,8 +46,8 @@ export const Routes: React.FC<{}> = () => {
|
|||
</Route>
|
||||
<Redirect from="/" to="/hello" />
|
||||
</RouterRoutes>
|
||||
</EuiPageContentBody>
|
||||
</EuiPageContent>
|
||||
</EuiPageSection>
|
||||
</EuiPageTemplate.Section>
|
||||
</EuiPageBody>
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue