Skip to content

Commit

Permalink
iets
Browse files Browse the repository at this point in the history
  • Loading branch information
loukanos12 committed Apr 26, 2024
1 parent 5aff18a commit bd87e2c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
18 changes: 11 additions & 7 deletions ui/src/components/TimePicker/TimePicker.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,18 @@ import './TimePicker.scss';
import { t } from 'i18next';

class TimePicker extends React.PureComponent {
maxDate = new Date( new Date())
maxDate = new Date(new Date());

render() {
return <DateTimePickerComponent placeholder ={t('timepicker.placeholder')}
id="datetimepicker"
strictMode={true}
max={this.maxDate}
onChange={(date) =>console.log(date)}
/>;
return (
<DateTimePickerComponent
placeholder={t('timepicker.placeholder')}
id="datetimepicker"
strictMode="true"
max={this.maxDate}
onChange={(date) => console.log(date)}
/>
);
}
}
export default TimePicker;
2 changes: 1 addition & 1 deletion ui/src/components/TimePicker/TimePicker.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* To specify background color and font size */
.e-datetime-wrapper .e-input-group-icon.e-date-icon, .e-datetime-wrapper .e-input-group-icon.e-time-icon {
font-size: 16px;
background-color: rgb(202, 17, 17);
background-color: transparent;
}

0 comments on commit bd87e2c

Please sign in to comment.