diff --git a/src/app/explorer/_components/InfiniteScrollGuilds.tsx b/src/app/explorer/_components/InfiniteScrollGuilds.tsx index b4651d1f0c..13c3305e2d 100644 --- a/src/app/explorer/_components/InfiniteScrollGuilds.tsx +++ b/src/app/explorer/_components/InfiniteScrollGuilds.tsx @@ -1,7 +1,6 @@ "use client"; import { GuildCard, GuildCardSkeleton } from "@/components/GuildCard"; -import { Button } from "@/components/ui/Button"; import { useInfiniteQuery } from "@tanstack/react-query"; import { useIntersection } from "foxact/use-intersection"; import { useAtomValue } from "jotai"; @@ -62,21 +61,20 @@ export const InfiniteScrollGuilds = () => { )} aria-hidden /> - {guilds.length === 0 && - !isLoading && - search && - `No results for "${search}"`} - + + {guilds.length === 0 && !isLoading && search ? ( +

+ `No results for "${search}"` +

+ ) : ( +

+ {isFetchingNextPage + ? "Loading more..." + : hasNextPage + ? "Load More" + : "No More Data"} +

+ )} ); };