Skip to content

Commit

Permalink
use KibanaPageTemplate
Browse files Browse the repository at this point in the history
  • Loading branch information
pgayvallet committed Jun 21, 2021
1 parent aa93a0c commit aaed4d7
Showing 1 changed file with 13 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,22 @@
import _ from 'lodash';
import React from 'react';
import PropTypes from 'prop-types';
import { Synopsis } from './synopsis';
import { SampleDataSetCards } from './sample_data_set_cards';
import { getServices } from '../kibana_services';

import {
EuiPage,
EuiTabs,
EuiTab,
EuiFlexItem,
EuiFlexGrid,
EuiFlexGroup,
EuiSpacer,
EuiTitle,
EuiPageBody,
} from '@elastic/eui';

import { getTutorials } from '../load_tutorials';

import { injectI18n, FormattedMessage } from '@kbn/i18n/react';
import { i18n } from '@kbn/i18n';
import { Synopsis } from './synopsis';
import { SampleDataSetCards } from './sample_data_set_cards';
import { getServices } from '../kibana_services';
import { KibanaPageTemplate } from '../../../../kibana_react/public';
import { getTutorials } from '../load_tutorials';

const ALL_TAB_ID = 'all';
const SAMPLE_DATA_TAB_ID = 'sampleData';
Expand Down Expand Up @@ -276,18 +272,14 @@ class TutorialDirectoryUi extends React.Component {

render() {
return (
<EuiPage restrictWidth={1200}>
<EuiPageBody>
<EuiFlexItem grow={false}>
{this.renderHeader()}
{this.renderNotices()}
<EuiSpacer size="m" />
<EuiTabs>{this.renderTabs()}</EuiTabs>
<EuiSpacer />
{this.renderTabContent()}
</EuiFlexItem>
</EuiPageBody>
</EuiPage>
<KibanaPageTemplate restrictWidth={1200}>
{this.renderHeader()}
{this.renderNotices()}
<EuiSpacer size="m" />
<EuiTabs>{this.renderTabs()}</EuiTabs>
<EuiSpacer />
{this.renderTabContent()}
</KibanaPageTemplate>
);
}
}
Expand Down

0 comments on commit aaed4d7

Please sign in to comment.