Skip to content

Commit

Permalink
Merge pull request #490 from sonaliTekdi/UI_changes
Browse files Browse the repository at this point in the history
create poll UI issues
  • Loading branch information
ManojNathIC authored Aug 14, 2024
2 parents 9ef13b3 + ab8246c commit bf8dc0a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 3 additions & 1 deletion packages/nulp_elite/src/pages/voting/createForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -512,7 +513,7 @@ const createForm = () => {
required
value={startDate}
onChange={(newValue) => setStartDate(newValue)}
disabled={isStartDateInPast} // Disable if startDate is in the past
minDateTime={currentDayTime}
/>
</LocalizationProvider>
</Box>
Expand All @@ -527,6 +528,7 @@ const createForm = () => {
required
value={endDate}
onChange={(newValue) => setEndDate(newValue)}
minDateTime={currentDayTime}
/>
</LocalizationProvider>
</Box>
Expand Down
7 changes: 4 additions & 3 deletions packages/nulp_elite/src/styles/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit bf8dc0a

Please sign in to comment.