Some repatches

This commit is contained in:
aronmal 2023-04-23 19:01:55 +02:00
parent dab3abdda2
commit c895bcef19
Signed by: aronmal
GPG key ID: 816B7707426FC612
10 changed files with 106 additions and 42 deletions

View file

@ -35,6 +35,19 @@ export function isAuthenticated(res: Response) {
return Promise.reject()
}
const handleConfirmation = () => {
const toastId = "confirm"
toast.warn(
<div id="toast-confirm">
<h4>You are already in another round, do you want to:</h4>
<button onClick={() => toast.dismiss(toastId)}>Join</button>
or
<button onClick={() => toast.dismiss(toastId)}>Leave</button>
</div>,
{ autoClose: false, toastId }
)
}
export default function Home({ q }: Props) {
const [otp, setOtp] = useState("")
const { gameProps, setGameProps } = useGameState()