1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-10 21:30:06 +02:00

converting simple elements to a base-element;

This commit is contained in:
Alex Windett 2017-02-01 14:48:06 +00:00
parent 9291fed0d7
commit 299f7e2282
3 changed files with 25 additions and 9 deletions

View File

@ -3,6 +3,11 @@ const ReactIntl = require('react-intl');
const Column = require('@ui/components/column');
const Row = require('@ui/components/row');
const BaseElements = require('@ui/components/base-elements');
const {
P
} = BaseElements;
const {
FormattedMessage
@ -11,9 +16,9 @@ const {
module.exports = () => (
<Row>
<Column xs={12}>
<p name='empty'>
<P name='empty'>
<FormattedMessage id='no-instances' />
</p>
</P>
</Column>
</Row>
);

View File

@ -4,6 +4,12 @@ const ReactIntl = require('react-intl');
const Button = require('@ui/components/button');
const Column = require('@ui/components/column');
const Row = require('@ui/components/row');
const BaseElements = require('@ui/components/base-elements');
const {
P,
H3,
} = BaseElements;
const {
FormattedMessage
@ -13,12 +19,12 @@ module.exports = () => (
<div>
<Row name='empty-services'>
<Column md={6} xs={12}>
<h3>
<H3>
<FormattedMessage id='add-services' />
</h3>
<p>
</H3>
<P>
<FormattedMessage id='no-services' />
</p>
</P>
</Column>
</Row>
<Row>
@ -27,9 +33,9 @@ module.exports = () => (
</Button>
</Row>
<Row>
<p>
<P>
<FormattedMessage id='or-bring-in-from' />
</p>
</P>
</Row>
<Row>
<Column>

View File

@ -3,10 +3,15 @@ const React = require('react');
const Row = require('@ui/components/row');
const Column = require('@ui/components/column');
const Button = require('@ui/components/button');
const BaseElements = require('@ui/components/base-elements');
const PeopleTable = require('./table');
const Invite = require('./invite');
const {
H3,
} = BaseElements;
const buttonStyle = {
float: 'right'
};
@ -39,7 +44,7 @@ const People = (props) => {
<Column xs={12}>
{ people.length > 0
? <PeopleTable {...props} />
: <h3>Noody here!</h3> }
: <H3>Noody here!</H3> }
</Column>
</Row>
</div>