From b9874641daa8ea042747f3ccbc71401b3c0c1ff2 Mon Sep 17 00:00:00 2001 From: Johannes Klein <17345891+jtklein@users.noreply.github.com> Date: Mon, 6 Jul 2026 15:01:48 +0200 Subject: [PATCH] If mode is time show only one time picker --- .../SharedComponents/DateTimePicker.tsx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/components/SharedComponents/DateTimePicker.tsx b/src/components/SharedComponents/DateTimePicker.tsx index 900eb4078..367882827 100644 --- a/src/components/SharedComponents/DateTimePicker.tsx +++ b/src/components/SharedComponents/DateTimePicker.tsx @@ -50,6 +50,24 @@ const DatePicker = ( { ); } + if ( mode === "time" ) { + return ( + { + onDatePicked( selectedDate ); + _toggleDateTimePicker( ); + }} + /> + ); + } + // Base case we want to pick a date return (