Some repatches
This commit is contained in:
parent
dab3abdda2
commit
c895bcef19
10 changed files with 106 additions and 42 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue