mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-28 03:43:28 +10:00
Remove options shape validation
The shape of filtering options is validated in a child component.
This commit is contained in:
parent
cce2f76872
commit
5c073d75ba
1 changed files with 2 additions and 7 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import React from 'react';
|
||||
import { array, string, arrayOf, func, shape } from 'prop-types';
|
||||
import { array, string, func } from 'prop-types';
|
||||
import classNames from 'classnames';
|
||||
|
||||
import SelectMultipleFilterMobileForm from './SelectMultipleFilterMobileForm';
|
||||
|
|
@ -61,12 +61,7 @@ SelectMultipleFilterMobile.propTypes = {
|
|||
urlParam: string.isRequired,
|
||||
label: string.isRequired,
|
||||
onSelect: func.isRequired,
|
||||
options: arrayOf(
|
||||
shape({
|
||||
key: string.isRequired,
|
||||
label: string.isRequired,
|
||||
})
|
||||
).isRequired,
|
||||
options: array.isRequired,
|
||||
initialValues: array,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue