From 35946dbb2feb7f9d1cbab16fb0602ce0303562e9 Mon Sep 17 00:00:00 2001 From: Wolfboy248 Date: Tue, 29 Oct 2024 10:09:17 +0100 Subject: refactor: upload run dialog, useMessage update, added loader spinner --- frontend/src/pages/Profile.tsx | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'frontend/src/pages/Profile.tsx') diff --git a/frontend/src/pages/Profile.tsx b/frontend/src/pages/Profile.tsx index 5d1c75d..3dba3ae 100644 --- a/frontend/src/pages/Profile.tsx +++ b/frontend/src/pages/Profile.tsx @@ -103,10 +103,12 @@ const Profile: React.FC = ({ profile, token, gameData, onDeleteRec }; return ( -
- {ConfirmDialogComponent} - {MessageDialogComponent} -
+
+ {MessageDialogComponent} + {ConfirmDialogComponent} + +
+
{profile.profile ? ( @@ -266,7 +268,7 @@ const Profile: React.FC = ({ profile, token, gameData, onDeleteRec {e.date.split("T")[0]} - + {i === 0 && r.scores.length > 1 ? + {i === 0 && record!.scores.length > 1 ?
+ ); }; -- cgit v1.2.3