diff --git a/webapp/src/components/Game/GameSelector/Selectable.css b/webapp/src/components/Game/GameSelector/Selectable.css index f1efadc..abc3ec4 100644 --- a/webapp/src/components/Game/GameSelector/Selectable.css +++ b/webapp/src/components/Game/GameSelector/Selectable.css @@ -9,6 +9,8 @@ .selectable i { font-size: 70%; + margin-left: 5px; + margin-right: 5px; } /* .Games .li button.action { diff --git a/webapp/src/components/Game/GameSelector/Selectable.jsx b/webapp/src/components/Game/GameSelector/Selectable.jsx index ba3c8a0..b2ed7cd 100644 --- a/webapp/src/components/Game/GameSelector/Selectable.jsx +++ b/webapp/src/components/Game/GameSelector/Selectable.jsx @@ -1,16 +1,21 @@ import './Selectable.css' import React from 'react'; -import { Stone, oppositeColor } from '../Stone'; +import { oppositeColor } from '../Stone'; +import Player from '../Player'; export default function Selectable({game}) { + const myColor = game.myColor + + const opponentColor = oppositeColor(myColor) + const opponentName = game.opponentName + return (
{game.message}