Move everything to awx/ui_next (#297)

This commit is contained in:
Michael Abashian
2019-06-27 11:11:58 -04:00
committed by GitHub
parent 0a6fc8cb89
commit 43592cbe00
327 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
import React from 'react';
import { mountWithContexts } from '@testUtils/enzymeHelpers';
import NotificationTemplates from './NotificationTemplates';
describe('<NotificationTemplates />', () => {
let pageWrapper;
let pageSections;
let title;
beforeEach(() => {
pageWrapper = mountWithContexts(<NotificationTemplates />);
pageSections = pageWrapper.find('PageSection');
title = pageWrapper.find('Title');
});
afterEach(() => {
pageWrapper.unmount();
});
test('initially renders without crashing', () => {
expect(pageWrapper.length).toBe(1);
expect(pageSections.length).toBe(2);
expect(title.length).toBe(1);
expect(title.props().size).toBe('2xl');
pageSections.forEach(section => {
expect(section.props().variant).toBeDefined();
});
});
});

View File

@@ -0,0 +1,28 @@
import React, { Component, Fragment } from 'react';
import { withI18n } from '@lingui/react';
import { t } from '@lingui/macro';
import {
PageSection,
PageSectionVariants,
Title,
} from '@patternfly/react-core';
class NotificationTemplates extends Component {
render () {
const { i18n } = this.props;
const { light, medium } = PageSectionVariants;
return (
<Fragment>
<PageSection variant={light} className="pf-m-condensed">
<Title size="2xl">
{i18n._(t`Notification Templates`)}
</Title>
</PageSection>
<PageSection variant={medium} />
</Fragment>
);
}
}
export default withI18n()(NotificationTemplates);

View File

@@ -0,0 +1 @@
export { default } from './NotificationTemplates';