full circle ModalitiesInStudy filtering

This commit is contained in:
dannyrb authored and James A. Petts committed 2020-05-15 14:02:00 +02:00
1 parent 3ce4b886ac
commit 053ed36e8f
4 files changed
+25 -21

No files matched your search

@@ -61,24 +61,15 @@ InputMultiSelect.propTypes = {
onLabelClick: PropTypes.func.isRequired,
onChange: PropTypes.func.isRequired,
placeholder: PropTypes.string,
/** Array of options to list as options */
options: PropTypes.arrayOf(
PropTypes.shape({
value: PropTypes.string,
label: PropTypes.string,
})
),
value: PropTypes.oneOfType([
PropTypes.arrayOf(
PropTypes.shape({
value: PropTypes.string,
label: PropTypes.string,
})
),
PropTypes.shape({
value: PropTypes.string,
label: PropTypes.string,
}),
]),
/** Array of string values that exist in our list of options */
value: PropTypes.arrayOf(PropTypes.string),
};
export default InputMultiSelect;
@@ -104,13 +104,18 @@ const StudyListFilter = ({
StudyListFilter.propTypes = {
filtersMeta: PropTypes.arrayOf(
PropTypes.shape({
/** Identifier used to map a field to it's value in `filterValues` */
name: PropTypes.string.isRequired,
/** Friendly label for filter field */
displayName: PropTypes.string.isRequired,
/** One of the supported filter field input types */
inputType: PropTypes.oneOf(['Text', 'MultiSelect', 'DateRange', 'None'])
.isRequired,
isSortable: PropTypes.bool.isRequired,
/** Size of filter field in a 12-grid system */
gridCol: PropTypes.oneOf([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12])
.isRequired,
/** Options for a "MultiSelect" inputType */
option: PropTypes.arrayOf(
PropTypes.shape({
value: PropTypes.string,