|
@@ -1,5 +1,6 @@
|
|
import React, { useState } from "react";
|
|
import React, { useState } from "react";
|
|
import Loading from "../../util/Loading";
|
|
import Loading from "../../util/Loading";
|
|
|
|
+import Button from "../../util/Button";
|
|
import PlayerNameInput from "./PlayerNameInput";
|
|
import PlayerNameInput from "./PlayerNameInput";
|
|
import JoinGameInput from "./JoinGameInput";
|
|
import JoinGameInput from "./JoinGameInput";
|
|
import { createGame, joinGame } from "../../../domain/GGSHService";
|
|
import { createGame, joinGame } from "../../../domain/GGSHService";
|
|
@@ -7,9 +8,9 @@ import { createGame, joinGame } from "../../../domain/GGSHService";
|
|
// TODO set round timer for new game
|
|
// TODO set round timer for new game
|
|
|
|
|
|
const NewGame = ({ onCreateGame, cannotCreateGame }) => (
|
|
const NewGame = ({ onCreateGame, cannotCreateGame }) => (
|
|
- <button className="btn new-game__btn" onClick={onCreateGame} disabled={cannotCreateGame}>
|
|
|
|
|
|
+ <Button className="new-game__btn" onClick={onCreateGame} disabled={cannotCreateGame}>
|
|
Create New Game
|
|
Create New Game
|
|
- </button>
|
|
|
|
|
|
+ </Button>
|
|
);
|
|
);
|
|
|
|
|
|
const PreGame = ({ initPlayerName, onGameJoined }) => {
|
|
const PreGame = ({ initPlayerName, onGameJoined }) => {
|