|
|
@ -14,7 +14,7 @@ const handleCreateRoom = async (id: string, teams: string[], questions: Question
|
|
|
|
const { password } = value
|
|
|
|
const { password } = value
|
|
|
|
|
|
|
|
|
|
|
|
if (status === 'ok') {
|
|
|
|
if (status === 'ok') {
|
|
|
|
alert(`Stanza creata con successo!\n\nPassword Admin: ${password}\n(non la perdere)`)
|
|
|
|
alert(`Gara creata con successo!\n\nPassword Admin: ${password}\n(non la perdere)`)
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -37,11 +37,11 @@ export const NewRoom = ({}) => {
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<div class="card tint-red stack-v center">
|
|
|
|
<div class="card tint-red stack-v center">
|
|
|
|
<h3>Crea una nuova stanza</h3>
|
|
|
|
<h3>Crea una nuova gara</h3>
|
|
|
|
<input
|
|
|
|
<input
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
|
class="fill-w"
|
|
|
|
class="fill-w"
|
|
|
|
placeholder="Nome stanza, e.g. ggwp-2024..."
|
|
|
|
placeholder="Nome gara, e.g. ggwp-2024..."
|
|
|
|
value={roomName}
|
|
|
|
value={roomName}
|
|
|
|
onInput={e => setRoomName(e.currentTarget.value)}
|
|
|
|
onInput={e => setRoomName(e.currentTarget.value)}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
@ -189,7 +189,7 @@ export const NewRoom = ({}) => {
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
>
|
|
|
|
>
|
|
|
|
Crea Stanza
|
|
|
|
Crea Gara
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
)
|
|
|
|