From e512da7930ece276ac3db08f312c16141aa7e7e0 Mon Sep 17 00:00:00 2001 From: abore9769 Date: Wed, 29 Jul 2026 08:11:02 +0100 Subject: [PATCH] fix: #444, #437, #436, #435 - add explicit return types to recurring.ts and aria-pressed to toggle buttons closes #444 closes #437 closes #436 closes #435 --- app/app/stream/[id]/page.tsx | 2 ++ app/app/streams/page.tsx | 1 + lib/recurring.ts | 8 ++++---- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/app/app/stream/[id]/page.tsx b/app/app/stream/[id]/page.tsx index e62cd71..dd8c853 100644 --- a/app/app/stream/[id]/page.tsx +++ b/app/app/stream/[id]/page.tsx @@ -457,6 +457,7 @@ function AutoWithdrawSection({ key={opt.value} type="button" onClick={() => updateSettings({ strategy: opt.value })} + aria-pressed={settings.strategy === opt.value} className={ "w-full text-left p-3 rounded-lg border transition-colors " + (settings.strategy === opt.value @@ -482,6 +483,7 @@ function AutoWithdrawSection({ key={opt.hours} type="button" onClick={() => updateSettings({ intervalHours: opt.hours })} + aria-pressed={settings.intervalHours === opt.hours} className={ "rounded-full border px-3 py-1 text-xs font-medium transition-colors " + (settings.intervalHours === opt.hours diff --git a/app/app/streams/page.tsx b/app/app/streams/page.tsx index 59b9dbd..0b92548 100644 --- a/app/app/streams/page.tsx +++ b/app/app/streams/page.tsx @@ -128,6 +128,7 @@ function StreamsPage() {