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;
|
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 {
|
||||||
|
|
Loading…
Reference in a new issue