Skip to content

Commit

Permalink
feat(frontend): make loader more presentable
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnisDa committed Dec 9, 2024
1 parent 185940e commit 1a41556
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion apps/frontend/app/routes/_dashboard.fitness.$entity.list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,16 @@ const DisplayFitnessListEntity = ({
.exhaustive(),
});

if (!entityInformation) return <Skeleton height={100} />;
if (!entityInformation)
return (
<Stack gap={4}>
<Skeleton height={76} />
<Group wrap="nowrap" justify="space-between" gap={4}>
<Skeleton height={40} />
<Skeleton height={40} />
</Group>
</Stack>
);

const personalBestsAchieved =
entityInformation.summary.total?.personalBestsAchieved || 0;
Expand Down

0 comments on commit 1a41556

Please sign in to comment.