round trip query string parameters for startDate and endDate; drop JSON stringify

This commit is contained in:
dannyrb authored and James A. Petts committed 2020-05-15 14:02:00 +02:00
1 parent 4413572c1c
commit 2b8f527d8c
5 files changed
+70 -77

No files matched your search

@@ -58,6 +58,16 @@ const InputGroup = ({
});
};
const handleDateRangeFieldChange = ({ startDate, endDate }) => {
onValuesChange({
...values,
[name]: {
startDate: startDate,
endDate: endDate,
},
});
};
switch (inputType) {
case 'Text':
return (
@@ -93,7 +103,7 @@ const InputGroup = ({
sortDirection={_sortDirection}
onLabelClick={onLabelClick}
value={values[name]}
onChange={handleFieldChange}
onChange={handleDateRangeFieldChange}
/>
);
case 'None':