aboutsummaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
Diffstat (limited to 'components')
-rw-r--r--components/recentGames.tsx7
1 files changed, 6 insertions, 1 deletions
diff --git a/components/recentGames.tsx b/components/recentGames.tsx
index a37f662..4eaed91 100644
--- a/components/recentGames.tsx
+++ b/components/recentGames.tsx
@@ -53,7 +53,12 @@ export default function RecentGames(props: { games?: Array<gameInfo> }) {
</tr>
{
props.games?.map(game => <tr>
- <td style={LeftAlignedTableColumn}>{game.opponent?.username}</td>
+ <td style={LeftAlignedTableColumn}>
+ <a href={"/user?id=" + game.opponent?.id} style={{
+ textDecoration: "none",
+ fontWeight: 500
+ }}>{game.opponent?.username}</a>
+ </td>
<GameOutcome game={game}/>
<td>{Math.max(0, game.moves.length -1)}</td>
<td style={RightAlignedTableColumn}>{(() => {