Self close empty JSX elements

This commit is contained in:
Kimmo Puputti 2017-01-19 10:40:24 +02:00
parent 2e453a0d79
commit 3406722707
8 changed files with 8 additions and 27 deletions

View file

@ -1,4 +1,4 @@
import React from 'react';
import { Page } from '../../components';
export default () => <Page title="Contact details"></Page>
export default () => <Page title="Contact details" />

View file

@ -3,10 +3,7 @@ import { Page } from '../../components';
const EditProfilePage = (props, context) => {
const { params } = props;
return (
<Page title={`Edit profile page with display name: ${params.displayName}`}>
</Page>
);
return <Page title={`Edit profile page with display name: ${params.displayName}`} />;
};
const { shape, string } = PropTypes;

View file

@ -1,7 +1,4 @@
import React from 'react';
import { Page } from '../../components';
export default () => (
<Page title="Notification settings">
</Page>
)
export default () => <Page title="Notification settings" />

View file

@ -1,7 +1,4 @@
import React from 'react';
import { Page } from '../../components';
export default () => (
<Page title="Type new password">
</Page>
)
export default () => <Page title="Type new password" />

View file

@ -1,7 +1,4 @@
import React from 'react';
import { Page } from '../../components';
export default () => (
<Page title="Request new password">
</Page>
)
export default () => <Page title="Request new password" />

View file

@ -1,7 +1,4 @@
import React from 'react';
import { Page } from '../../components';
export default () => (
<Page title="Payment methods">
</Page>
)
export default () => <Page title="Payment methods" />

View file

@ -1,7 +1,4 @@
import React from 'react';
import { Page } from '../../components';
export default () => (
<Page title="Payout preferences">
</Page>
)
export default () => <Page title="Payout preferences" />

View file

@ -2,8 +2,7 @@ import React, { PropTypes } from 'react';
import { Page } from '../../components';
const ProfilePage = ({ params }) => (
<Page title={`Profile page with display name: ${params.displayName}`}>
</Page>
<Page title={`Profile page with display name: ${params.displayName}`} />
);
const { shape, string } = PropTypes;