Skip to content

Commit

Permalink
fixed lint errors (#493)
Browse files Browse the repository at this point in the history
* fixed lint errors

* add more skeleton cards
  • Loading branch information
GhostOf0days authored May 13, 2024
1 parent c77977e commit 35dbe1b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/pages/ListPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,13 @@ function ListPage({
// Display skeleton cards while loading
return (
<Grid container spacing={2}>
{Array.from({ length: 36 }).map((_, index) => (
<EateryCardSkeleton key={`skeleton-${index}`} />
))}
{/* TODO: find a better solution */}
{Array(36)
.fill(null)
.map((_, index) => index)
.map((v) => (
<EateryCardSkeleton key={v} />
))}
</Grid>
);
}
Expand Down

0 comments on commit 35dbe1b

Please sign in to comment.