Skip to content

Commit

Permalink
Update ClubSearch.tsx
Browse files Browse the repository at this point in the history
Made the search page use the horizontal club card component when searching for clubs.
  • Loading branch information
Ninad-S authored Nov 19, 2024
1 parent 9538f02 commit 473856a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/directory/search/ClubSearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { api } from '@src/trpc/react';
import type { SelectClub as Club } from '@src/server/db/models';
import { type Session } from 'next-auth';
import ClubCard from '@src/components/club/ClubCard';
import HorizontalClubCard from '@src/components/club/HorizontalClubCard';

interface ClubSearchComponentProps {
userSearch: string;
Expand Down Expand Up @@ -30,9 +30,9 @@ export const ClubSearchComponent = ({
}

return (
<div className="grid w-full auto-rows-fr grid-cols-[repeat(auto-fill,320px)] justify-center gap-16 pb-4">
<div className="flex flex-col w-full gap-4 pb-4">
{data.map((club: Club) => (
<ClubCard key={club.id} club={club} session={session} priority />
<HorizontalClubCard key={club.id} club={club} session={session} />
))}
</div>
);
Expand Down

0 comments on commit 473856a

Please sign in to comment.