Skip to content

Commit ef3a963

Browse files
author
cchaos
committed
Added hard-coded, but overridable DTS to KibanaPageTemplate.pageHeader
1 parent bc9899c commit ef3a963

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

  • src/plugins
  • x-pack/plugins/index_management/public/application/sections/home

src/plugins/kibana_react/public/page_template/page_template.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,10 @@ export const KibanaPageTemplate: FunctionComponent<KibanaPageTemplateProps> = ({
8989
template={template}
9090
restrictWidth={restrictWidth}
9191
paddingSize={template === 'centeredBody' ? 'none' : 'l'}
92-
pageHeader={pageHeader}
92+
pageHeader={{
93+
'data-test-subj': 'kibana-page-template-header',
94+
...pageHeader,
95+
}}
9396
pageSideBar={pageSideBar}
9497
pageSideBarProps={{
9598
...rest.pageSideBarProps,

src/plugins/management/public/components/landing/landing.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import React, { ComponentType } from 'react';
1010
import { FormattedMessage } from '@kbn/i18n/react';
11-
import { EuiHorizontalRule, EuiText } from '@elastic/eui';
11+
import { EuiHorizontalRule } from '@elastic/eui';
1212
import { KibanaPageTemplateProps } from '../../../../../../src/plugins/kibana_react/public';
1313

1414
interface ManagementLandingPageProps {

x-pack/plugins/index_management/public/application/sections/home/home.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import React, { useEffect } from 'react';
99
import { Route, Switch } from 'react-router-dom';
1010
import { FormattedMessage } from '@kbn/i18n/react';
11-
import { EuiButtonEmpty, EuiPageHeader, EuiSpacer, EuiHorizontalRule } from '@elastic/eui';
11+
import { EuiButtonEmpty } from '@elastic/eui';
1212
import { documentationService } from '../../services/documentation';
1313
import { DataStreamList } from './data_stream_list';
1414
import { IndexList } from './index_list';

0 commit comments

Comments
 (0)