fix:hide handler actually hides window instead of just clearing value

This commit is contained in:
Galactic99
2026-04-19 12:35:19 +05:30
parent 65b9d189e8
commit 7e02856836
3 changed files with 91 additions and 19 deletions
+11 -9
View File
@@ -11,18 +11,20 @@ export function CountdownOverlay() {
return () => unsubscribe();
}, []);
if (value === null) {
return null;
}
return (
<div className="w-screen h-screen bg-transparent flex items-center justify-center pointer-events-none select-none">
{value === null ? null : (
<div className="flex items-center justify-center w-40 h-40 rounded-full bg-black/50">
<div
className="text-white/90 text-[80px] font-bold leading-none tabular-nums"
style={{ textShadow: "0 4px 24px rgba(0, 0, 0, 0.65)" }}
>
{value}
</div>
<div className="flex items-center justify-center w-40 h-40 rounded-full bg-black/50">
<div
className="text-white/90 text-[80px] font-bold leading-none tabular-nums"
style={{ textShadow: "0 4px 24px rgba(0, 0, 0, 0.65)" }}
>
{value}
</div>
)}
</div>
</div>
);
}