From 5544194122706587485f9524c647307ffe0613f8 Mon Sep 17 00:00:00 2001 From: Stanleyowskiki Date: Wed, 27 Mar 2024 08:30:38 +0100 Subject: [PATCH] Making things better --- src/User/ProfileView/ProfileInfoTableAchievements.js | 3 ++- src/User/ProfileView/ProfileView.css | 6 +++++- src/User/ProfileView/ProfileView.js | 8 ++++---- src/services/Api.js | 6 ++++-- 4 files changed, 15 insertions(+), 8 deletions(-) diff --git a/src/User/ProfileView/ProfileInfoTableAchievements.js b/src/User/ProfileView/ProfileInfoTableAchievements.js index 5c7b27e..90e5871 100644 --- a/src/User/ProfileView/ProfileInfoTableAchievements.js +++ b/src/User/ProfileView/ProfileInfoTableAchievements.js @@ -49,7 +49,8 @@ function ProfileInfoTableAchievements(props) { title={tooltipcontent} followCursor enterDelay={500} - leaveDelay={100}> + leaveDelay={100} + >
-

Member since: {user.joined}

-

Last seen: {user.lastSeen}

-

Bots added: {user.botsAdded}

-

Tournaments created: {user.tournamentsCreated}

+

Member since:

{user.joined}

+

Last seen:

{user.lastSeen}

+

Bots added:

{user.botsAdded}

+

Tournaments created:

{user.tournamentsCreated}

diff --git a/src/services/Api.js b/src/services/Api.js index f85ac63..a9df901 100644 --- a/src/services/Api.js +++ b/src/services/Api.js @@ -139,8 +139,10 @@ function getUser(request){ "id": request["playerId"], "login": "RdmusR_97", "rating": 1203, - "lastSeen": "2024-02-11T19:21:17.85", - "joined": "2024-02-06T19:21:17.85", + "lastSeen": "2024-02-11", + "joined": "2024-02-06", + "botsAdded": 5, + "tournamentsCreated": 3, "photoURL": "https://img.freepik.com/free-vector/businessman-character-avatar-isolated_24877-60111.jpg?w=740&t=st=1709386522~exp=1709387122~hmac=612506df2e857afd82d8b64b5b44128ef42d1e046876d26074bb46b41abe1fb0" }