Skip to content

Commit

Permalink
Update TimePicker.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixDePrins committed Apr 25, 2024
1 parent 3ab491d commit 2035b4e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ui/src/components/TimePicker/TimePicker.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,14 @@ import './TimePicker.scss';
import { t } from 'i18next';

class TimePicker extends React.PureComponent {
maxDate = new Date( new Date())
render() {
return <DateTimePickerComponent placeholder ={t('timepicker.placeholder')} id="datetimepicker" />;
return <DateTimePickerComponent placeholder ={t('timepicker.placeholder')}
id="datetimepicker"
strictMode={true}
max={this.maxDate}
onChange={(date) =>console.log(date)}
/>;
}
}
export default TimePicker;

0 comments on commit 2035b4e

Please sign in to comment.