This repository was archived by the owner on Jul 21, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-17
lines changed Expand file tree Collapse file tree 1 file changed +4
-17
lines changed Original file line number Diff line number Diff line change 2
2
* Primary React component for the Game.
3
3
*/
4
4
5
- import moment from 'moment' ;
6
5
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' ;
14
7
import PropTypes from 'prop-types' ;
15
8
16
9
import { TicTacToe } from '../program/tic-tac-toe' ;
@@ -22,11 +15,9 @@ export class Game extends React.Component {
22
15
super ( props ) ;
23
16
this . recentGameState = { } ;
24
17
this . state = {
25
- completedGames : [ ] ,
26
18
currentGame : null ,
27
19
currentGameStatusMessage : '' ,
28
20
pause : false ,
29
- totalGames : 0 ,
30
21
transactions : [ ] ,
31
22
totalTransactions : 0 ,
32
23
} ;
@@ -180,13 +171,9 @@ export class Game extends React.Component {
180
171
}
181
172
182
173
render ( ) {
183
- const {
184
- completedGames,
185
- currentGame,
186
- currentGameStatusMessage,
187
- totalGames,
188
- } = this . state ;
174
+ const { currentGame, currentGameStatusMessage} = this . state ;
189
175
176
+ /*
190
177
const gameHistory =
191
178
completedGames.length === 0 ? (
192
179
<i>None</i>
@@ -235,6 +222,7 @@ export class Game extends React.Component {
235
222
</Panel.Body>
236
223
</Panel>
237
224
);
225
+ */
238
226
239
227
let playAgain = null ;
240
228
if ( currentGame && ! currentGame . inProgress ) {
@@ -289,7 +277,6 @@ export class Game extends React.Component {
289
277
{ playAgain }
290
278
</ Panel . Body >
291
279
</ Panel >
292
- { gameHistory }
293
280
< Panel >
294
281
< Panel . Heading >
295
282
< Panel . Title >
You can’t perform that action at this time.
0 commit comments