Skip to content

Commit

Permalink
Fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
Minnowo committed Sep 28, 2024
1 parent a02db39 commit 331f758
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ui/src/common/DateTimeSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,14 @@ export const DateTimeSelector: React.FC<DateTimeSelectorProps> = React.memo(
const time = localeData.longDateFormat('LT').replace('A', 'a');
const ampm = time.indexOf('a') !== -1;
const format = showDate ? localeData.longDateFormat('L') + ' ' + time : time;
const width = (showDate ? 185 : 105) + (ampm ? 20 : 0);

return (
<KeyboardDateTimePicker
className="time-picker"
variant="dialog"
InputProps={{disableUnderline: true}}
title={selectedDate.format()}
style={{width: width}}
style={{width: (showDate ? 185 : 105) + (ampm ? 20 : 0)}}
PopoverProps={{
onEntered: () => {
popoverOpen(true);
Expand Down

0 comments on commit 331f758

Please sign in to comment.