loading metrics in Leaderboard
This commit is contained in:
parent
0dc3ca930d
commit
c2b61bbb52
@ -65,7 +65,6 @@ const App = () => {
|
||||
<Route path='/register' element={<Register/>}/>
|
||||
<Route path={`${CHALLENGE_PAGE}/:challengeId`} element={<Challenge/>}/>
|
||||
<Route path={CHALLENGES_PAGE} element={<Challenges/>}/>
|
||||
|
||||
{
|
||||
KeyCloakService.isLoggedIn() ? <>
|
||||
<Route exact path='/' element={<Challenges/>}/>
|
||||
|
@ -83,7 +83,11 @@ const Leaderboard = (props) => {
|
||||
<H2 as='h2' margin='0 0 12px 0'>
|
||||
Leaderboard
|
||||
</H2>
|
||||
<FlexRow width='100%' gap='16px' as='section' margin='16px 0'>
|
||||
<Search searchQueryHandler={tableSearchQueryHandler}/>
|
||||
{/*<FilterBy header='Sort by' options={sortOptions} gridTemplateColumns='auto auto'*/}
|
||||
{/* option={sortBy} textAlign='center'*/}
|
||||
{/* alignmentX='center' handler={sortByHandler}/>*/}
|
||||
{!loading ? <FlexRow width='100%' gap='16px' as='section' margin='16px 0'>
|
||||
<H3>
|
||||
Metric:
|
||||
</H3>
|
||||
@ -95,8 +99,7 @@ const Leaderboard = (props) => {
|
||||
{metric}
|
||||
</Filter>);
|
||||
}) : ''}
|
||||
</FlexRow>
|
||||
<Search searchQueryHandler={tableSearchQueryHandler}/>
|
||||
</FlexRow> : ''}
|
||||
<Table challengeName={props.challengeName} loading={loading}
|
||||
renderElements={renderSubmissions} headerElements={headerElements}/>
|
||||
<Pager pageNr={pageNr} width='48px' borderRadius='64px'
|
||||
@ -115,6 +118,7 @@ const Leaderboard = (props) => {
|
||||
</H2>
|
||||
<Search searchQueryHandler={tableSearchQueryHandler}/>
|
||||
<FlexRow gap='40px' margin='32px 0'>
|
||||
{!loading ? <>
|
||||
<FilterBy header='Sort by' options={sortOptions} gridTemplateColumns='auto auto auto auto'
|
||||
option={sortBy} textAlign='center'
|
||||
alignmentX='center' handler={sortByHandler}/>
|
||||
@ -134,11 +138,11 @@ const Leaderboard = (props) => {
|
||||
}) : ''}
|
||||
</FlexRow>
|
||||
</FlexColumn>
|
||||
</> : ''}
|
||||
</FlexRow>
|
||||
<Table challengeName={props.challengeName} loading={loading}
|
||||
renderElements={renderSubmissions}
|
||||
headerElements={headerElements}/>
|
||||
|
||||
<Pager pageNr={pageNr} width='72px' borderRadius='64px'
|
||||
pages={CALC_PAGES(entries ? entries : [])}
|
||||
nextPage={nextPage} previousPage={previousPage}
|
||||
|
Loading…
Reference in New Issue
Block a user