|
@@ -1,15 +1,15 @@
|
|
|
import React from "react";
|
|
|
|
|
|
export default ({ gameId, onChangeGameId, onJoinGame, cannotJoinGame }) => (
|
|
|
- <div style={{
|
|
|
- display: "flex",
|
|
|
- flexFlow: "column nowrap",
|
|
|
- justifyContent: "center",
|
|
|
- alignItems: "center",
|
|
|
- }}>
|
|
|
- <span style={{ padding: "0.1em" }}>Game ID:</span>
|
|
|
- <input style={{ margin: "0.1em" }} type="text" value={gameId || ""} onChange={onChangeGameId} />
|
|
|
- <button style={{ margin: "0.1em" }} onClick={onJoinGame} disabled={cannotJoinGame}>
|
|
|
+ <div className="join-game-form">
|
|
|
+ <span className="join-game-form__label">Game ID:</span>
|
|
|
+ <input
|
|
|
+ className="inpt join-game-form__input"
|
|
|
+ type="text"
|
|
|
+ value={gameId || ""}
|
|
|
+ onChange={onChangeGameId}
|
|
|
+ />
|
|
|
+ <button className="btn join-game-form__btn" onClick={onJoinGame} disabled={cannotJoinGame}>
|
|
|
Join Existing Game
|
|
|
</button>
|
|
|
</div>
|