Skip to content

Commit 473856a

Browse files
authored
Update ClubSearch.tsx
Made the search page use the horizontal club card component when searching for clubs.
1 parent 9538f02 commit 473856a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: src/app/directory/search/ClubSearch.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { api } from '@src/trpc/react';
33
import type { SelectClub as Club } from '@src/server/db/models';
44
import { type Session } from 'next-auth';
5-
import ClubCard from '@src/components/club/ClubCard';
5+
import HorizontalClubCard from '@src/components/club/HorizontalClubCard';
66

77
interface ClubSearchComponentProps {
88
userSearch: string;
@@ -30,9 +30,9 @@ export const ClubSearchComponent = ({
3030
}
3131

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

0 commit comments

Comments
 (0)