Remove shape validation for options

The shape correctness is validated in the child component.
This commit is contained in:
Hannu Lyytikainen 2018-02-05 10:52:42 +02:00
parent 56b67ccb96
commit 078d7700b2

View file

@ -1,5 +1,5 @@
import React, { Component } from 'react';
import { arrayOf, func, node, number, shape, string } from 'prop-types';
import { array, arrayOf, func, number, string } from 'prop-types';
import classNames from 'classnames';
import { injectIntl, intlShape } from 'react-intl';
import { toPairs } from 'lodash';
@ -167,12 +167,7 @@ SelectMultipleFilter.propTypes = {
rootClassName: string,
className: string,
onSubmit: func.isRequired,
options: arrayOf(
shape({
key: string.isRequired,
label: node.isRequired,
})
).isRequired,
options: array.isRequired,
initialValues: arrayOf(string),
contentPlacementOffset: number,