From 43017c89ee723ee99ba20b3c4ddc22a05c9b527f Mon Sep 17 00:00:00 2001 From: GuillaumeSD Date: Tue, 27 Feb 2024 04:00:06 +0100 Subject: [PATCH] feat : add circular progress to chess com load --- src/sections/loadGame/chessComInput.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/sections/loadGame/chessComInput.tsx b/src/sections/loadGame/chessComInput.tsx index 39f6a51..7d30a19 100644 --- a/src/sections/loadGame/chessComInput.tsx +++ b/src/sections/loadGame/chessComInput.tsx @@ -3,6 +3,7 @@ import { getUserRecentGames } from "@/lib/chessCom"; import { capitalize } from "@/lib/helpers"; import { ChessComGame } from "@/types/chessCom"; import { + CircularProgress, FormControl, Grid, ListItemButton, @@ -47,7 +48,7 @@ export default function ChessComInput({ pgn, setPgn }: Props) { return ( <> - + - {games.length > 0 && ( + {chessComUsername && ( {games.map((game) => ( ))} + + {games.length === 0 && } )}