Fix PropType errors
This commit is contained in:
parent
d295368170
commit
289f90dd4e
3 changed files with 5 additions and 3 deletions
|
@ -62,6 +62,7 @@ export function fetchMeFail(error) {
|
|||
return {
|
||||
type: ME_FETCH_FAIL,
|
||||
error,
|
||||
skipAlert: true,
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -8,6 +8,7 @@ const FormPropTypes = {
|
|||
label: PropTypes.oneOfType([
|
||||
PropTypes.string,
|
||||
PropTypes.object,
|
||||
PropTypes.node,
|
||||
]),
|
||||
};
|
||||
|
||||
|
@ -38,7 +39,7 @@ InputContainer.propTypes = {
|
|||
export const LabelInputContainer = ({ label, children, ...props }) => {
|
||||
const id = uuidv4();
|
||||
const childrenWithProps = React.Children.map(children, child => (
|
||||
React.cloneElement(child, { id: id })
|
||||
React.cloneElement(child, { id: id, key: id })
|
||||
));
|
||||
|
||||
return (
|
||||
|
|
|
@ -38,7 +38,7 @@ class RegistrationForm extends ImmutablePureComponent {
|
|||
static propTypes = {
|
||||
instance: ImmutablePropTypes.map,
|
||||
locale: PropTypes.string,
|
||||
intl: PropTypes.func.isRequired,
|
||||
intl: PropTypes.object.isRequired,
|
||||
}
|
||||
|
||||
state = {
|
||||
|
@ -141,7 +141,7 @@ class RegistrationForm extends ImmutablePureComponent {
|
|||
/>
|
||||
<div className='fields-group'>
|
||||
<Checkbox
|
||||
label={intl.formatMessage(messages.agreement, { tos: <Link to='/about/tos' target='_blank'>{intl.formatMessage(messages.tos)}</Link> })}
|
||||
label={intl.formatMessage(messages.agreement, { tos: <Link to='/about/tos' target='_blank' key={0}>{intl.formatMessage(messages.tos)}</Link> })}
|
||||
name='agreement'
|
||||
onChange={this.onCheckboxChange}
|
||||
required
|
||||
|
|
Loading…
Reference in a new issue