From 7666208a6ba349f842d8312f6565f37a5a05d116 Mon Sep 17 00:00:00 2001 From: "jason.lam" Date: Tue, 2 Jan 2024 10:55:22 +0800 Subject: [PATCH] update search form --- .../PublicNotice/Search_GLD/SearchForm.js | 77 +++++++++++-------- 1 file changed, 43 insertions(+), 34 deletions(-) diff --git a/src/pages/PublicNotice/Search_GLD/SearchForm.js b/src/pages/PublicNotice/Search_GLD/SearchForm.js index 43cfbb4..ce0fef6 100644 --- a/src/pages/PublicNotice/Search_GLD/SearchForm.js +++ b/src/pages/PublicNotice/Search_GLD/SearchForm.js @@ -31,7 +31,7 @@ const SearchPublicNoticeForm = ({ applySearch, orgComboData, searchCriteria, iss const [minDate, setMinDate] = React.useState(searchCriteria.dateFrom); const [maxDate, setMaxDate] = React.useState(searchCriteria.dateTo); - const marginBottom = 2; + const marginBottom = 2.5; const { reset, register, handleSubmit } = useForm() const onSubmit = (data) => { data.status = selectedLabelsString @@ -71,6 +71,7 @@ const SearchPublicNoticeForm = ({ applySearch, orgComboData, searchCriteria, iss // setStatus({ key: 0, label: 'All', type: 'all' }); setOrgSelected({}); setIssueSelected({}); + setSelectedStatus([]); reset(); } @@ -112,40 +113,48 @@ const SearchPublicNoticeForm = ({ applySearch, orgComboData, searchCriteria, iss /> - - { - setMinDate(DateUtils.dateStr(newValue)); - }} - InputLabelProps={{ - shrink: true - }} - /> - + + + + { + setMinDate(DateUtils.dateStr(newValue)); + }} + InputLabelProps={{ + shrink: true + }} + /> + - - { - setMaxDate(DateUtils.dateStr(newValue)); - }} - id="dateTo" - type="date" - label={"Submit Date(To)"} - defaultValue={searchCriteria.dateTo} - /> + + To + + + + { + setMaxDate(DateUtils.dateStr(newValue)); + }} + id="dateTo" + type="date" + //label={"Submit Date(To)"} + defaultValue={searchCriteria.dateTo} + /> + +