Skip to content

Commit

Permalink
Merge pull request #97 from fga-eps-mds/213-criar-filtro-específico-p…
Browse files Browse the repository at this point in the history
…ara-data

Add date filter
  • Loading branch information
Maxlobo authored Nov 11, 2021
2 parents 3236ba2 + 9a6f775 commit 727431b
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/Components/Filters/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,12 @@ const recordFields = {
},
history: {
label: "Histórico",
value: ""
}
value: "",
},
document_date: {
label: "Data",
value: "",
},
};

const RenderFilters = ({ handleWhere }) => {
Expand Down Expand Up @@ -115,7 +119,7 @@ const RenderFilters = ({ handleWhere }) => {
};
setWhere({ ...where });
setOptions((prev) => ({ ...prev, ...newOpt }));
}
};

return (
<StyledFilterDiv>
Expand All @@ -142,7 +146,9 @@ const RenderFilters = ({ handleWhere }) => {
value={options[key].value}
onChange={(event) => onChange(event)}
/>
<button class="x-button" onClick={() => removeFilter(key)}>X</button>
<button class="x-button" onClick={() => removeFilter(key)}>
X
</button>
</StyledSearchBar>
)
);
Expand Down

0 comments on commit 727431b

Please sign in to comment.