From 1db68708aae4df15bedb9b3fee81aac8d60319a6 Mon Sep 17 00:00:00 2001 From: Alex Cheung Date: Wed, 10 Apr 2024 16:09:56 +0800 Subject: [PATCH] fix ui --- .../Announcement/Search_Public/SearchForm.js | 8 +- src/pages/Recon/SearchForm.js | 130 ++++++++++++------ 2 files changed, 91 insertions(+), 47 deletions(-) diff --git a/src/pages/Announcement/Search_Public/SearchForm.js b/src/pages/Announcement/Search_Public/SearchForm.js index 56683ed..451c745 100644 --- a/src/pages/Announcement/Search_Public/SearchForm.js +++ b/src/pages/Announcement/Search_Public/SearchForm.js @@ -9,7 +9,7 @@ import { useForm } from "react-hook-form"; import * as React from "react"; import * as DateUtils from "utils/DateUtils"; import { ThemeProvider } from "@emotion/react"; -import { useNavigate } from "react-router-dom"; +// import { useNavigate } from "react-router-dom"; import { PNSPS_BUTTON_THEME } from "../../../themes/buttonConst"; import { FormattedMessage, useIntl } from "react-intl"; import { makeStyles } from '@mui/styles'; @@ -32,7 +32,7 @@ const useStyles = makeStyles(() => ({ })); const SearchPublicNoticeForm = ({ applySearch, searchCriteria }) => { - const navigate = useNavigate() + // const navigate = useNavigate() const [minDate, setMinDate] = React.useState(searchCriteria.dateFrom); const [maxDate, setMaxDate] = React.useState(searchCriteria.dateTo); @@ -209,7 +209,7 @@ const SearchPublicNoticeForm = ({ applySearch, searchCriteria }) => { {/*last row*/} - + {/* - + */} + Reset + + */} - - - - + + + + + {onLoad? + + + + : + + + Reset + - - - + + - - - - {/* - {onDownload? - - : - - } - */} - - } + + + + + + + + + + + + + + {/* + {onDownload? + + : + + } + */} + + } + +