Skip to content
This repository was archived by the owner on Jul 21, 2020. It is now read-only.

Commit 458adce

Browse files
committed
Hide game history until #57 is fixed
1 parent e9f3099 commit 458adce

File tree

1 file changed

+4
-17
lines changed

1 file changed

+4
-17
lines changed

src/webapp/Game.js

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,8 @@
22
* Primary React component for the Game.
33
*/
44

5-
import moment from 'moment';
65
import React from 'react';
7-
import {
8-
Button,
9-
ButtonGroup,
10-
Carousel,
11-
Panel,
12-
PanelGroup,
13-
} from 'react-bootstrap';
6+
import {Button, ButtonGroup, Panel, PanelGroup} from 'react-bootstrap';
147
import PropTypes from 'prop-types';
158

169
import {TicTacToe} from '../program/tic-tac-toe';
@@ -22,11 +15,9 @@ export class Game extends React.Component {
2215
super(props);
2316
this.recentGameState = {};
2417
this.state = {
25-
completedGames: [],
2618
currentGame: null,
2719
currentGameStatusMessage: '',
2820
pause: false,
29-
totalGames: 0,
3021
transactions: [],
3122
totalTransactions: 0,
3223
};
@@ -180,13 +171,9 @@ export class Game extends React.Component {
180171
}
181172

182173
render() {
183-
const {
184-
completedGames,
185-
currentGame,
186-
currentGameStatusMessage,
187-
totalGames,
188-
} = this.state;
174+
const {currentGame, currentGameStatusMessage} = this.state;
189175

176+
/*
190177
const gameHistory =
191178
completedGames.length === 0 ? (
192179
<i>None</i>
@@ -235,6 +222,7 @@ export class Game extends React.Component {
235222
</Panel.Body>
236223
</Panel>
237224
);
225+
*/
238226

239227
let playAgain = null;
240228
if (currentGame && !currentGame.inProgress) {
@@ -289,7 +277,6 @@ export class Game extends React.Component {
289277
{playAgain}
290278
</Panel.Body>
291279
</Panel>
292-
{gameHistory}
293280
<Panel>
294281
<Panel.Heading>
295282
<Panel.Title>

0 commit comments

Comments
 (0)