upcoming tournament page, minor changes

This commit is contained in:
yohlo
2025-09-09 23:20:19 -05:00
parent c5d69f1a19
commit c74da09bde
29 changed files with 1125 additions and 46 deletions

18
src/hooks/use-now.ts Normal file
View File

@@ -0,0 +1,18 @@
import { useEffect, useState } from "react";
const useNow = () => {
const [now, setNow] = useState(new Date());
useEffect(() => {
const intervalId = setInterval(() => {
setNow(new Date());
}, 1000);
return () => clearInterval(intervalId);
}, []);
return now;
}
export default useNow;