diff --git a/app/(landing)/hackathons/[slug]/components/tabs/contents/FindTeam.tsx b/app/(landing)/hackathons/[slug]/components/tabs/contents/FindTeam.tsx index b152c38bc..3b2569fd9 100644 --- a/app/(landing)/hackathons/[slug]/components/tabs/contents/FindTeam.tsx +++ b/app/(landing)/hackathons/[slug]/components/tabs/contents/FindTeam.tsx @@ -19,6 +19,7 @@ import { import TeamCard from './teams/TeamCard'; import MyTeamView from './teams/MyTeamView'; import { BoundlessButton } from '@/components/buttons/BoundlessButton'; +import Pagination from '@/components/ui/pagination'; import { DropdownMenu, DropdownMenuContent, @@ -91,6 +92,7 @@ const FindTeam = () => { const teams = (teamsResponse?.data?.teams || []).filter( t => !myTeam || t.id !== myTeam.id ); + const totalPages = teamsResponse?.data?.pagination?.totalPages ?? 1; const handleJoin = (team: Team) => { setSelectedTeam(team); @@ -264,16 +266,23 @@ const FindTeam = () => {

) : teams.length > 0 ? ( -
- {teams.map(team => ( - handleJoin(team)} - onMessageLeader={handleMessageLeader} - /> - ))} -
+ <> +
+ {teams.map(team => ( + handleJoin(team)} + onMessageLeader={handleMessageLeader} + /> + ))} +
+ + ) : (