From ed63cb5e7ff046bb9fb4434c189ac35d320a24df Mon Sep 17 00:00:00 2001 From: Bernt Christian Egeland Date: Sun, 15 Jan 2023 19:27:56 +0100 Subject: [PATCH] Add timepicker --- web/src/routes/Events.jsx | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/web/src/routes/Events.jsx b/web/src/routes/Events.jsx index 87ae63ec8..21bd2cfda 100644 --- a/web/src/routes/Events.jsx +++ b/web/src/routes/Events.jsx @@ -26,6 +26,7 @@ import Dialog from '../components/Dialog'; import MultiSelect from '../components/MultiSelect'; import { formatUnixTimestampToDateTime, getDurationFromTimestamps } from '../utils/dateUtil'; import TimeAgo from '../components/TimeAgo'; +import Timepicker from '../components/TimePicker'; const API_LIMIT = 25; @@ -414,17 +415,21 @@ export default function Events({ path, ...props }) { )} {state.showCalendar && ( - setState({ ...state, showCalendar: false })} - relativeTo={datePicker} - > - setState({ ...state, showCalendar: false })} - /> - + + setState({ ...state, showCalendar: false })} + relativeTo={datePicker} + > + setState({ ...state, showCalendar: false })} + > + + + + )} {state.showPlusConfig && (