@@ -11,6 +11,7 @@ import { Route, RouteComponentProps, Switch } from 'react-router-dom';
1111
1212import { EuiErrorBoundary , EuiFlexItem , EuiFlexGroup , EuiButtonEmpty } from '@elastic/eui' ;
1313import { DocumentTitle } from '../../components/document_title' ;
14+ import { HelpCenterContent } from '../../components/help_center_content' ;
1415import { RoutedTabs } from '../../components/navigation/routed_tabs' ;
1516import { ColumnarPage } from '../../components/page' ;
1617import { Header } from '../../components/header' ;
@@ -55,6 +56,13 @@ export const InfrastructurePage = ({ match }: RouteComponentProps) => {
5556 } ) }
5657 />
5758
59+ < HelpCenterContent
60+ feedbackLink = "https://discuss.elastic.co/c/metrics"
61+ appName = { i18n . translate ( 'xpack.infra.header.infrastructureHelpAppName' , {
62+ defaultMessage : 'Metrics' ,
63+ } ) }
64+ />
65+
5866 < Header
5967 breadcrumbs = { [
6068 {
@@ -120,59 +128,6 @@ export const InfrastructurePage = ({ match }: RouteComponentProps) => {
120128 </ EuiFlexGroup >
121129 </ AppNavigation >
122130
123- < Header
124- breadcrumbs = { [
125- {
126- text : i18n . translate ( 'xpack.infra.header.infrastructureTitle' , {
127- defaultMessage : 'Metrics' ,
128- } ) ,
129- } ,
130- ] }
131- readOnlyBadge = { ! uiCapabilities ?. infrastructure ?. save }
132- />
133- < AppNavigation
134- aria-label = { i18n . translate ( 'xpack.infra.header.infrastructureNavigationTitle' , {
135- defaultMessage : 'Metrics' ,
136- } ) }
137- >
138- < EuiFlexGroup gutterSize = { 'none' } alignItems = { 'center' } >
139- < EuiFlexItem >
140- < RoutedTabs
141- tabs = { [
142- {
143- app : 'metrics' ,
144- title : i18n . translate ( 'xpack.infra.homePage.inventoryTabTitle' , {
145- defaultMessage : 'Inventory' ,
146- } ) ,
147- pathname : '/inventory' ,
148- } ,
149- {
150- app : 'metrics' ,
151- title : i18n . translate (
152- 'xpack.infra.homePage.metricsExplorerTabTitle' ,
153- {
154- defaultMessage : 'Metrics Explorer' ,
155- }
156- ) ,
157- pathname : '/explorer' ,
158- } ,
159- {
160- app : 'metrics' ,
161- title : i18n . translate ( 'xpack.infra.homePage.settingsTabTitle' , {
162- defaultMessage : 'Settings' ,
163- } ) ,
164- pathname : '/settings' ,
165- } ,
166- ] }
167- />
168- </ EuiFlexItem >
169- < EuiFlexItem grow = { false } >
170- < Route path = { '/explorer' } component = { MetricsAlertDropdown } />
171- < Route path = { '/inventory' } component = { InventoryAlertDropdown } />
172- </ EuiFlexItem >
173- </ EuiFlexGroup >
174- </ AppNavigation >
175-
176131 < Switch >
177132 < Route path = { '/inventory' } component = { SnapshotPage } />
178133 < Route
0 commit comments