File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import {
2+ DocumentTitle ,
3+ ListPageHeader ,
24 PrometheusData ,
35 PrometheusEndpoint ,
46 PrometheusLabels ,
@@ -60,7 +62,6 @@ import {
6062import * as _ from 'lodash-es' ;
6163import type { FC , Ref } from 'react' ;
6264import { useMemo , useCallback , useEffect , useState } from 'react' ;
63- import { Helmet } from 'react-helmet' ;
6465import { useTranslation } from 'react-i18next' ;
6566import { useDispatch , useSelector } from 'react-redux' ;
6667
@@ -1391,17 +1392,9 @@ const MetricsPage_: FC = () => {
13911392
13921393 return (
13931394 < >
1394- < Helmet >
1395- < title > { t ( 'Metrics' ) } </ title >
1396- </ Helmet >
1397- < PageSection hasBodyWrapper = { false } >
1395+ < DocumentTitle > { t ( 'Metrics' ) } </ DocumentTitle >
1396+ < ListPageHeader title = { perspective === 'dev' ? undefined : t ( 'Metrics' ) } >
13981397 < Split hasGutter >
1399- { perspective !== 'dev' && (
1400- < SplitItem >
1401- < Title headingLevel = "h1" > { t ( 'Metrics' ) } </ Title >
1402- </ SplitItem >
1403- ) }
1404- < SplitItem isFilled />
14051398 < SplitItem data-test = { DataTestIDs . MetricGraphUnitsDropDown } >
14061399 < Tooltip content = { < > { t ( 'This dropdown only formats results.' ) } </ > } >
14071400 < GraphUnitsDropDown />
@@ -1414,7 +1407,7 @@ const MetricsPage_: FC = () => {
14141407 < MetricsActionsMenu />
14151408 </ SplitItem >
14161409 </ Split >
1417- </ PageSection >
1410+ </ ListPageHeader >
14181411 < PageSection hasBodyWrapper = { false } >
14191412 < Stack hasGutter >
14201413 < StackItem >
You can’t perform that action at this time.
0 commit comments