From 2a6793a971f89c8c2949c7fdf5c36969eae6ed61 Mon Sep 17 00:00:00 2001 From: akash2061 Date: Sun, 3 Nov 2024 16:17:43 +0530 Subject: [PATCH] Enhance Toaster component with dark theme and custom styles; update toast duration in Timer component; remove unused win.html file --- src/App.jsx | 16 +++++++++++++++- src/components/Timer.jsx | 4 ++-- src/components/win.html | 11 ----------- 3 files changed, 17 insertions(+), 14 deletions(-) delete mode 100644 src/components/win.html diff --git a/src/App.jsx b/src/App.jsx index 51c620f..2b14c1e 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -28,7 +28,21 @@ function App() { - + ); } diff --git a/src/components/Timer.jsx b/src/components/Timer.jsx index 28427c1..073a52a 100644 --- a/src/components/Timer.jsx +++ b/src/components/Timer.jsx @@ -18,11 +18,11 @@ const Timer = () => { } else { if (timerName !== 'Pomodoro Timer') { toast.success(`${timerName} is done!`, { - duration: 3000 + duration: 5000 }); } else { toast.success('Time to take a break!', { - duration: 3000 + duration: 5000 }); } invoke('bring_window_to_front'); diff --git a/src/components/win.html b/src/components/win.html deleted file mode 100644 index 4512593..0000000 --- a/src/components/win.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - Document - - - Foo - - \ No newline at end of file