Move prop type destructuring statement

This commit is contained in:
Kimmo Puputti 2017-04-28 11:12:28 +03:00
parent 814184aa0a
commit 0896ea47a7

View file

@ -6,8 +6,6 @@ import { Button, LabeledField } from '../../components';
import css from './LoginForm.css';
const { bool } = PropTypes;
const LoginFormComponent = props => {
const { handleSubmit, pristine, submitting, inProgress, intl } = props;
const emailLabel = intl.formatMessage({
@ -36,6 +34,8 @@ const LoginFormComponent = props => {
LoginFormComponent.defaultProps = { inProgress: false };
const { bool } = PropTypes;
LoginFormComponent.propTypes = {
...formPropTypes,
inProgress: bool,