mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-28 12:43:11 +10:00
Self close empty JSX elements
This commit is contained in:
parent
2e453a0d79
commit
3406722707
8 changed files with 8 additions and 27 deletions
|
|
@ -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" />
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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" />
|
||||
|
|
|
|||
|
|
@ -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" />
|
||||
|
|
|
|||
|
|
@ -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" />
|
||||
|
|
|
|||
|
|
@ -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" />
|
||||
|
|
|
|||
|
|
@ -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" />
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue