refactor to remove crufty renderOpenGame function from Game Button

This commit is contained in:
sorrelbri 2020-04-10 20:19:58 -07:00
parent 16868aea1a
commit bf836d50d7

View file

@ -25,15 +25,16 @@ const GameButton = (props) => {
return gameData; return gameData;
} }
const requestJoinGame = () => { // TODO add to open game link
console.log(`request to Join Game ${game.id}!`) // const requestJoinGame = () => {
const requestAction = { // console.log(`request to Join Game ${game.id}!`)
type: 'GAMES', // const requestAction = {
message: 'JOIN_REQUEST', // type: 'GAMES',
body: {id: game.id} // message: 'JOIN_REQUEST',
} // body: {id: game.id}
dispatch(requestAction); // }
} // dispatch(requestAction);
// }
const renderGame = () => { const renderGame = () => {
const { const {