From 42755a9d8661650c1ac60ea23eac947421fc0c40 Mon Sep 17 00:00:00 2001 From: Bernt Christian Egeland Date: Sun, 15 Jan 2023 19:25:45 +0100 Subject: [PATCH] added timepicker as children to calendar --- web/src/components/Calendar.jsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/web/src/components/Calendar.jsx b/web/src/components/Calendar.jsx index 3525ce0f1..044871ada 100644 --- a/web/src/components/Calendar.jsx +++ b/web/src/components/Calendar.jsx @@ -5,7 +5,7 @@ import ArrowRightDouble from '../icons/ArrowRightDouble'; const todayTimestamp = new Date().setHours(0, 0, 0, 0).valueOf(); -const Calendar = ({ onChange, calendarRef, close, dateRange }) => { +const Calendar = ({ onChange, calendarRef, close, dateRange, children }) => { const keyRef = useRef([]); const date = new Date(); @@ -287,8 +287,8 @@ const Calendar = ({ onChange, calendarRef, close, dateRange }) => { }; return ( -
-
+
+
{
{renderCalendar()}
+ {children}
); };