From ab8246c42d88c031385edef143a5bc126a632168 Mon Sep 17 00:00:00 2001 From: sonaligarud Date: Tue, 13 Aug 2024 18:44:38 +0530 Subject: [PATCH] create poll UI issues --- packages/nulp_elite/src/pages/voting/createForm.js | 4 +++- packages/nulp_elite/src/styles/style.css | 7 ++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/packages/nulp_elite/src/pages/voting/createForm.js b/packages/nulp_elite/src/pages/voting/createForm.js index 870dc366..51e6e5f0 100644 --- a/packages/nulp_elite/src/pages/voting/createForm.js +++ b/packages/nulp_elite/src/pages/voting/createForm.js @@ -90,6 +90,7 @@ const createForm = () => { const [orgOffset, setOrgOffset] = useState(0); const [isFetchingMoreOrgs, setIsFetchingMoreOrgs] = useState(false); const currentDateTime = new Date(); + const currentDayTime = dayjs(); const [chips, setChips] = useState(editData?.poll_keywords || []); const inputRef = useRef(null); @@ -512,7 +513,7 @@ const createForm = () => { required value={startDate} onChange={(newValue) => setStartDate(newValue)} - disabled={isStartDateInPast} // Disable if startDate is in the past + minDateTime={currentDayTime} /> @@ -527,6 +528,7 @@ const createForm = () => { required value={endDate} onChange={(newValue) => setEndDate(newValue)} + minDateTime={currentDayTime} /> diff --git a/packages/nulp_elite/src/styles/style.css b/packages/nulp_elite/src/styles/style.css index 1bf13a10..8ac7f38c 100644 --- a/packages/nulp_elite/src/styles/style.css +++ b/packages/nulp_elite/src/styles/style.css @@ -3615,10 +3615,11 @@ thead th { padding-top: 0 !important; } .createForm .MuiInputBase-formControl { - background: #fff !important; - width: 100% !important; + background: #fff!important; border: 2px solid #efefef; - display: block !important; + height: 60px; + width: 100%!important; + display: inline-flex; } .MuiRadioGroup-root svg {