Add ability to hide the small clock in the top bar

Conditionally render the Clock component in HomePage based on `homeClockVisible` state.
This commit is contained in:
Riyadh
2026-04-21 18:00:59 +00:00
parent 61fae4c2c1
commit e5670b17d4
+10 -8
View File
@@ -449,14 +449,16 @@ export default function HomePage() {
</div>
{/* Clock + dates */}
<div className="px-2 shrink-0">
<Clock
style={user?.clockStyle ?? null}
hour12={user?.clockHour12 ?? null}
time={time}
lang={lang}
/>
</div>
{homeClockVisible && (
<div className="px-2 shrink-0">
<Clock
style={user?.clockStyle ?? null}
hour12={user?.clockHour12 ?? null}
time={time}
lang={lang}
/>
</div>
)}
{/* Controls */}
<div className="flex items-center gap-1 shrink basis-0 flex-1 justify-end">