Skip to content
Snippets Groups Projects
Commit 7caaa498 authored by Ronnie Friman's avatar Ronnie Friman
Browse files

add buttons to access replay

parent 059713da
No related branches found
No related tags found
2 merge requests!46Development to testing,!34Filter player replay
...@@ -54,7 +54,16 @@ export default class GameCard extends React.Component { ...@@ -54,7 +54,16 @@ export default class GameCard extends React.Component {
<Link <Link
to={{ pathname: "/game", search: "?id=" + this.state.gameInfo.id }} to={{ pathname: "/game", search: "?id=" + this.state.gameInfo.id }}
> >
<button type="button">Select</button> <button id={`select${this.state.gameInfo.name}`} type="button">
Select
</button>
</Link>
<Link
to={{ pathname: "/replay", search: "?id=" + this.state.gameInfo.id }}
>
<button id={`replay${this.state.gameInfo.name}`} type="button">
Replay
</button>
</Link> </Link>
</div> </div>
); );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment