Skip to content

Commit

Permalink
Merge pull request #49 from susannalandstrom/NG-744
Browse files Browse the repository at this point in the history
NG-744 disable clock ui selection
  • Loading branch information
susannalandstrom authored Apr 28, 2022
2 parents 57c0edb + 536eddf commit 584e9c5
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions src/components/TimePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,16 @@ const TimePicker = ({ ampm = false, InputProps = {}, ...props }: TimePickerProps
return (
<MuiTimePicker
ampm={ampm}
open={false}
{...props}
PopperProps={{
// @ts-ignore
InputAdornmentProps={{
sx: {
'& .MuiClockPicker-arrowSwitcher': {
width: '70px',

'& button:hover': {
backgroundColor: 'primary.light',
},
},
ml: '0px',
},
}}
OpenPickerButtonProps={{
sx: {
pointerEvents: 'none',
},
}}
renderInput={(params) => <TextField {...(params as TextFieldProps)} {...InputProps} />}
Expand Down

0 comments on commit 584e9c5

Please sign in to comment.