Gym check-in: Settings switch to turn the feature off

Off hides the Home card and the /checkin route; saved cards stay. On by default,
profiles without the key read as on. pt-BR: trailing comma the MR's last override
line was missing, override count 600.
This commit is contained in:
Duarte Santos committed 2026-09-04 14:42:48 +02:00
1 parent 3197f9e9be
commit 0af9f55528
20 files changed
+64 -7

No files matched your search

+3 -3
View File
@@ -116,9 +116,9 @@ function Shell() {
<Routes>
<Route path="/home" element={<Home />} />
{/* Gym check-in is mobile-only — it needs the native scanner and showing a QR to
a turnstile makes no sense in a browser tab. Off mobile the route falls through
to the catch-all redirect below. */}
{MOBILE && <Route path="/checkin" element={<CheckIn />} />}
a turnstile makes no sense in a browser tab. Off mobile (or switched off in
Settings) the route falls through to the catch-all redirect below. */}
{MOBILE && S.checkIn !== false && <Route path="/checkin" element={<CheckIn />} />}
<Route path="/plan" element={<Plan />} />
<Route path="/plan/r/:id" element={<RoutineEdit />} />
<Route path="/workout" element={<Workout />} />