Skip to content

Commit

Permalink
Merge pull request #190 from MeasureAuthoringTool/Update-TimeField-Co…
Browse files Browse the repository at this point in the history
…mponent

Updating Time Field Component to accept additional props, and enabled…
  • Loading branch information
RohitKandimalla authored Oct 5, 2023
2 parents cba8be3 + 614d62d commit 1e0d307
Show file tree
Hide file tree
Showing 3 changed files with 5,005 additions and 619 deletions.
3 changes: 2 additions & 1 deletion react/components/TimeField/TimeField.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ const TimeField = ({
disabled,
required,
error,
...rest
}) => {
return (
<LocalizationProvider dateAdapter={AdapterDayjs}>
Expand Down Expand Up @@ -75,7 +76,6 @@ const TimeField = ({
</InputLabel>
<TimePicker
sx={timeFieldStyle}
disableOpenPicker
disabled={disabled}
value={value ? value : null}
onChange={handleTimeChange}
Expand All @@ -84,6 +84,7 @@ const TimeField = ({
id: "time",
},
}}
{...rest}
/>
</LocalizationProvider>
);
Expand Down
Loading

0 comments on commit 1e0d307

Please sign in to comment.