diff --git a/client/src/pages/affiliationsTab.jsx b/client/src/pages/affiliationsTab.jsx index c82a1387..08e053af 100644 --- a/client/src/pages/affiliationsTab.jsx +++ b/client/src/pages/affiliationsTab.jsx @@ -63,7 +63,7 @@ export default function AffiliationsTab({ affiliations, selectedAffiliations, se setFilteredAffiliationName(e.target.value)} value={filteredAffiliationName} /> diff --git a/client/src/pages/filters.jsx b/client/src/pages/filters.jsx index 78ca121d..bdf6c7ae 100644 --- a/client/src/pages/filters.jsx +++ b/client/src/pages/filters.jsx @@ -1,5 +1,7 @@ import { Button, + Checkbox, + CheckboxGroup, Col, Row, Select, @@ -23,12 +25,14 @@ export default function Filters({ sendQuery }) { if (searchParams.size === 0) { setSearchParams({ affiliations: [], + datasets: false, endYear: '2021', startYear: '2021', }); } else { setCurrentSearchParams({ affiliations: searchParams.getAll('affiliations'), + datasets: searchParams.get('datasets') === 'true', endYear: searchParams.get('endYear'), startYear: searchParams.get('startYear'), }); @@ -56,7 +60,7 @@ export default function Filters({ sendQuery }) { setSearchParams({ ...currentSearchParams, affiliations })} @@ -64,7 +68,7 @@ export default function Filters({ sendQuery }) { onInputHandler={setOnInputAffiliationsHandler} /> - + setSearchParams({ ...currentSearchParams, endYear: e.target.value })} /> - + + + setSearchParams({ ...currentSearchParams, datasets: e.target.checked })} + /> + + +