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;
}
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 {