From 7caaa498f1392682301586985474c60389a6f8d0 Mon Sep 17 00:00:00 2001 From: Ronnie Friman <L4168@student.jamk.fi> Date: Wed, 17 Jul 2019 18:25:41 +0300 Subject: [PATCH] add buttons to access replay --- src/components/GameCard.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/components/GameCard.js b/src/components/GameCard.js index b3c5a8c..18a1e67 100644 --- a/src/components/GameCard.js +++ b/src/components/GameCard.js @@ -54,7 +54,16 @@ export default class GameCard extends React.Component { <Link 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> </div> ); -- GitLab