From 9148dce666070aa35452c296eacbd46b8c6fdb4d Mon Sep 17 00:00:00 2001 From: ruben Date: Fri, 15 Mar 2024 20:00:55 +0100 Subject: [PATCH] Point system view updated --- webapp/src/views/Game.jsx | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/webapp/src/views/Game.jsx b/webapp/src/views/Game.jsx index 95f3dcee..7f3671ef 100644 --- a/webapp/src/views/Game.jsx +++ b/webapp/src/views/Game.jsx @@ -4,6 +4,7 @@ import { useParams, useNavigate } from "react-router-dom"; import ProtectedComponent from "./components/ProtectedComponent"; import axios from "axios"; import { AuthContext } from "../App"; +import coinImage from '../media/coin.svg'; const apiEndpoint = process.env.REACT_APP_API_ENDPOINT || 'http://localhost:8000'; @@ -159,13 +160,18 @@ export default function Game() { - - + + + {pointsUpdated} + + Coin + + {questions[current].statement} - + {questions[current].options.map((option, i) => ( @@ -175,18 +181,13 @@ export default function Game() { - + - + Time left: {timeLeft} - - - Points: {pointsUpdated} - -