From 11bc4cb22aa514e67d6bb3b90a1959319d0a0b1e Mon Sep 17 00:00:00 2001 From: Augustin Hiebel Date: Wed, 6 Dec 2023 09:24:19 +0100 Subject: [PATCH] Prototype: profile updates --- mock-data/data-games.js | 20 ++++++++++++++++ mock-data/data-users.js | 2 +- .../components/FeedItemMatchTabSummary.js | 8 +++---- pages/stryda/profile/[user_id]/tab-feed.js | 10 ++++---- .../profile/[user_id]/tab-highlights.js | 4 ++-- pages/stryda/profile/[user_id]/tab-stats.js | 24 ++++++++++--------- 6 files changed, 45 insertions(+), 23 deletions(-) diff --git a/mock-data/data-games.js b/mock-data/data-games.js index bdfa4a02..ccc10ca7 100644 --- a/mock-data/data-games.js +++ b/mock-data/data-games.js @@ -6924,6 +6924,26 @@ export const dataGames = [ }, }, ], + demo: { + mainStats: [ + { + label: "Win ratio %", + value: "57.2", + }, + { + label: "KDA", + value: "7.3 / 6.4 / 8.2", + }, + { + label: "CS/min", + value: "104", + }, + { + label: "Vision score", + value: "71%", + }, + ], + }, }, { id: 3, diff --git a/mock-data/data-users.js b/mock-data/data-users.js index 9d726633..b8bfd163 100644 --- a/mock-data/data-users.js +++ b/mock-data/data-users.js @@ -65,7 +65,7 @@ export const dataUsers = [ powertokens: 105, tickets: 3, }, - games: [1, 6, 4], + games: [1, 6, 4, 2], ladders: [ { gameSlug: "valorant", diff --git a/pages/stryda/components/FeedItemMatchTabSummary.js b/pages/stryda/components/FeedItemMatchTabSummary.js index bc7a6c6c..af43eefd 100644 --- a/pages/stryda/components/FeedItemMatchTabSummary.js +++ b/pages/stryda/components/FeedItemMatchTabSummary.js @@ -61,7 +61,7 @@ export default function FeedItemMatchTabSummary(props) { onClick={() => !detailedView && openFeedItemDetailsMatch("summary")} >
-
+
{getMapByID(match.meta.map).name}
-
    +
      {match.stats.mainStats .slice(0, 3) .map((mainStat, mainStatIndex) => ( @@ -105,7 +105,7 @@ export default function FeedItemMatchTabSummary(props) { - + + + )}