use custom button component to rid all the css

This commit is contained in:
SamKry
2025-11-18 19:32:36 +01:00
parent a82037a698
commit f113ed6042
6 changed files with 79 additions and 45 deletions

View File

@@ -16,6 +16,11 @@ export default function Clash() {
// Inputs for contract functions
const [phase, setPhase] = useState<"lobby" | "commit" | "reveal">("lobby");
// Clear status when phase changes
useEffect(() => {
setStatus("");
}, [phase]);
// Load config and contract
useEffect(() => {
const loadConfig = async () => {