refactor to remove crufty renderOpenGame function from Game Button
This commit is contained in:
parent
16868aea1a
commit
bf836d50d7
1 changed files with 10 additions and 9 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue