diff --git a/app/timer/page.tsx b/app/timer/page.tsx
index 139ed38..7021cec 100644
--- a/app/timer/page.tsx
+++ b/app/timer/page.tsx
@@ -857,6 +857,38 @@ export default function TimerPage() {
);
+ /* Finish and Discard ask through these. Both layouts (the block screen and
+ the night one) render them, since both carry the buttons. */
+ const confirmSheets = (
+ <>
+ setAsking(null)}
+ onConfirm={() => {
+ setAsking(null);
+ handleStop();
+ }}
+ />
+ setAsking(null)}
+ onConfirm={() => {
+ setAsking(null);
+ cancel();
+ router.replace('/dashboard');
+ }}
+ />
+ >
+ );
+
/* Open mode goes to the night paper and lets the fan fill the whole screen.
It is the one place in the app that inverts, and it does it because a
long sitting in a dark room is what the mode is for. */
@@ -1035,6 +1067,7 @@ export default function TimerPage() {
{controls}
+ {confirmSheets}
{pictureSheet}
@@ -1230,31 +1263,7 @@ export default function TimerPage() {
- setAsking(null)}
- onConfirm={() => {
- setAsking(null);
- handleStop();
- }}
- />
- setAsking(null)}
- onConfirm={() => {
- setAsking(null);
- cancel();
- router.replace('/dashboard');
- }}
- />
+ {confirmSheets}
{pictureSheet}