From c2b61bbb5287786fa2deb31f8676dcd9aef9c726 Mon Sep 17 00:00:00 2001 From: mattyl006 Date: Fri, 14 Oct 2022 10:20:35 +0200 Subject: [PATCH] loading metrics in Leaderboard --- src/App.js | 1 - .../sections/Leaderboard/Leaderboard.js | 50 ++++++++++--------- 2 files changed, 27 insertions(+), 24 deletions(-) diff --git a/src/App.js b/src/App.js index d101201..a538ed9 100644 --- a/src/App.js +++ b/src/App.js @@ -65,7 +65,6 @@ const App = () => { }/> }/> }/> - { KeyCloakService.isLoggedIn() ? <> }/> diff --git a/src/components/sections/Leaderboard/Leaderboard.js b/src/components/sections/Leaderboard/Leaderboard.js index 52cc9d1..ab6a203 100644 --- a/src/components/sections/Leaderboard/Leaderboard.js +++ b/src/components/sections/Leaderboard/Leaderboard.js @@ -83,7 +83,11 @@ const Leaderboard = (props) => {

Leaderboard

- + + {/**/} + {!loading ?

Metric:

@@ -95,8 +99,7 @@ const Leaderboard = (props) => { {metric} ); }) : ''} -
- +
: ''} { - - -

- Metric -

- - {getPossibleMetrics() ? getPossibleMetrics().map((metric, index) => { - return ( - - {metric} - ); - }) : ''} - -
+ {!loading ? <> + + +

+ Metric +

+ + {getPossibleMetrics() ? getPossibleMetrics().map((metric, index) => { + return ( + + {metric} + ); + }) : ''} + +
+ : ''}
-