From e01e5e59df8eba19e6fc690562fb7e36e67e504d Mon Sep 17 00:00:00 2001 From: "simon.franken" Date: Mon, 23 Feb 2026 10:44:34 +0100 Subject: [PATCH] =?UTF-8?q?Remove=20cancel=20confirmation=20=E2=80=94=20di?= =?UTF-8?q?scard=20timer=20immediately=20on=20click?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/TimerWidget.tsx | 52 +++++++------------------ 1 file changed, 14 insertions(+), 38 deletions(-) diff --git a/frontend/src/components/TimerWidget.tsx b/frontend/src/components/TimerWidget.tsx index f8f400e..4915303 100644 --- a/frontend/src/components/TimerWidget.tsx +++ b/frontend/src/components/TimerWidget.tsx @@ -56,7 +56,6 @@ export function TimerWidget() { const { projects } = useProjects(); const [showProjectSelect, setShowProjectSelect] = useState(false); const [error, setError] = useState(null); - const [confirmCancel, setConfirmCancel] = useState(false); // Start time editing state const [editingStartTime, setEditingStartTime] = useState(false); @@ -74,7 +73,6 @@ export function TimerWidget() { const handleStop = async () => { setError(null); - setConfirmCancel(false); try { await stopTimer(); } catch (err) { @@ -86,7 +84,6 @@ export function TimerWidget() { setError(null); try { await cancelTimer(); - setConfirmCancel(false); } catch (err) { setError(err instanceof Error ? err.message : "Failed to cancel timer"); } @@ -210,41 +207,20 @@ export function TimerWidget() { {/* Stop + Cancel Buttons */}
- {confirmCancel ? ( -
- Discard timer? - - -
- ) : ( - <> - - - - )} + +