Skip to content

Commit

Permalink
Merge branch 'v3-main' into add-static-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
dominik-stumpf committed Nov 25, 2024
2 parents 58debc1 + 4e4d409 commit 1d42aae
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/app/explorer/components/InfiniteScrollGuilds.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,18 @@ export const InfiniteScrollGuilds = () => {
statusResponse = "No More Data";
} else if (search && !isLoading) {
statusResponse = `No results for "${search}"`;
} else {
statusResponse = "Couldn't load guilds";
}

return (
<section className="grid gap-2">
<div className="grid gap-4 sm:grid-cols-2 lg:grid-cols-3">
{isLoading
? Array.from({ length: PAGE_SIZE }, (_, i) => (
<GuildCardSkeleton key={i} />
))
: guilds.map((guild) => <GuildCard key={guild.id} guild={guild} />)}
? Array(PAGE_SIZE).fill(<GuildCardSkeleton />)
: guilds.map((guild, _i) => (
<GuildCard key={guild.urlName} guild={guild} />
))}
</div>
<div
ref={useCallback(
Expand Down

0 comments on commit 1d42aae

Please sign in to comment.