refactor to remove crufty renderOpenGame function from Game Button
This commit is contained in:
parent
8a60d82832
commit
16868aea1a
1 changed files with 0 additions and 13 deletions
|
@ -35,19 +35,6 @@ const GameButton = (props) => {
|
|||
dispatch(requestAction);
|
||||
}
|
||||
|
||||
const renderOpenGame = () => {
|
||||
return (
|
||||
<>
|
||||
<div onClick={() => requestJoinGame()} >Request to Join Game</div>
|
||||
|
||||
<div className="GameButton__player-data GameButton__player-data--black">
|
||||
<span className="GameButton__player-data__name GameButton__player-data__name--black">{game.playerBlack}</span>
|
||||
<span className="GameButton__player-data__rank GameButton__player-data__rank--black">{game.playerBlackRank}</span>
|
||||
</div>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
const renderGame = () => {
|
||||
const {
|
||||
gameLinkText,
|
||||
|
|
Loading…
Reference in a new issue