Skip to content

Commit

Permalink
Arreglando UI de error de Ranking
Browse files Browse the repository at this point in the history
  • Loading branch information
iyanfdezz committed Apr 23, 2024
1 parent 9dd13ce commit d316a5c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions webapp/src/pages/Ranking/Ranking.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,19 +96,27 @@ const Ranking = () => {

if (isLoading) {
return (
<>
<Nav/>
<div>
<Heading as="h2">{t('pages.ranking.loading')}</Heading>
<p>{t('pages.ranking.loadingText')}</p>
</div>
<Footer/>
</>
);
}

if (error) {
return (
<>
<Nav/>
<div>
<Heading as="h2">{t('pages.ranking.error')} {error}</Heading>
<p>{t('pages.ranking.errorLabel')}</p>
</div>
<Footer/>
</>
);
}

Expand Down

0 comments on commit d316a5c

Please sign in to comment.