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:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user