Skip to content

Commit

Permalink
add empty list status
Browse files Browse the repository at this point in the history
  • Loading branch information
macojaune committed Oct 22, 2024
1 parent b2fb11e commit 430c7b4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/routes/index.lazy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,11 @@ function HomePage() {
<div className="relative mt-8 w-full">
<h3 className="mb-4 text-left text-lg font-medium">Historique</h3>
<div className="flex max-h-52 flex-col items-center gap-2 overflow-auto">
{powerStatuses?.length === 0 && (
<p className="text-center">
Pas de contributions dans les 6 dernières heures.{" "}
</p>
)}
{powerStatuses
?.sort(
(a, b) =>
Expand Down

0 comments on commit 430c7b4

Please sign in to comment.