From bf836d50d717561fc99e0efde83de05209b480ff Mon Sep 17 00:00:00 2001 From: sorrelbri Date: Fri, 10 Apr 2020 20:19:58 -0700 Subject: [PATCH] refactor to remove crufty renderOpenGame function from Game Button --- .../src/components/Button/Game/Game.js | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/packages/play-node-go/src/components/Button/Game/Game.js b/packages/play-node-go/src/components/Button/Game/Game.js index 8b2ff92..3742354 100644 --- a/packages/play-node-go/src/components/Button/Game/Game.js +++ b/packages/play-node-go/src/components/Button/Game/Game.js @@ -25,15 +25,16 @@ const GameButton = (props) => { return gameData; } - const requestJoinGame = () => { - console.log(`request to Join Game ${game.id}!`) - const requestAction = { - type: 'GAMES', - message: 'JOIN_REQUEST', - body: {id: game.id} - } - dispatch(requestAction); - } + // TODO add to open game link + // const requestJoinGame = () => { + // console.log(`request to Join Game ${game.id}!`) + // const requestAction = { + // type: 'GAMES', + // message: 'JOIN_REQUEST', + // body: {id: game.id} + // } + // dispatch(requestAction); + // } const renderGame = () => { const {