|
@@ -7,7 +7,7 @@ import { createGame, joinGame } from "../../../services/ggsh.service";
|
|
// TODO set round timer for new game
|
|
// TODO set round timer for new game
|
|
|
|
|
|
const NewGame = ({ onCreateGame, cannotCreateGame }) => (
|
|
const NewGame = ({ onCreateGame, cannotCreateGame }) => (
|
|
- <button onClick={onCreateGame} disabled={cannotCreateGame}>
|
|
|
|
|
|
+ <button className="btn new-game__btn" onClick={onCreateGame} disabled={cannotCreateGame}>
|
|
Create New Game
|
|
Create New Game
|
|
</button>
|
|
</button>
|
|
);
|
|
);
|
|
@@ -38,7 +38,7 @@ const PreGame = ({ initPlayerName, onGameJoined }) => {
|
|
const cannotJoinGame = cannotCreateGame || !gameId || gameId.length === 0;
|
|
const cannotJoinGame = cannotCreateGame || !gameId || gameId.length === 0;
|
|
|
|
|
|
return (
|
|
return (
|
|
- <div>
|
|
|
|
|
|
+ <div className="new-game">
|
|
<PlayerNameInput {...{ playerName, onChangePlayerName }} />
|
|
<PlayerNameInput {...{ playerName, onChangePlayerName }} />
|
|
<hr/>
|
|
<hr/>
|
|
<NewGame {...{ onCreateGame, cannotCreateGame }} />
|
|
<NewGame {...{ onCreateGame, cannotCreateGame }} />
|