refactor to remove crufty renderOpenGame function from Game Button

This commit is contained in:
sorrelbri 2020-04-10 20:05:42 -07:00
parent 8a60d82832
commit 16868aea1a

View file

@ -35,19 +35,6 @@ const GameButton = (props) => {
dispatch(requestAction); 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 renderGame = () => {
const { const {
gameLinkText, gameLinkText,