diff --git a/src/app/directory/search/ClubSearch.tsx b/src/app/directory/search/ClubSearch.tsx index 9bd9b21..f664fda 100644 --- a/src/app/directory/search/ClubSearch.tsx +++ b/src/app/directory/search/ClubSearch.tsx @@ -30,7 +30,7 @@ export const ClubSearchComponent = ({ } return ( -
+
{data.map((club: Club) => ( ))} diff --git a/src/components/club/HorizontalClubCard.tsx b/src/components/club/HorizontalClubCard.tsx index 41bfe56..636dd4b 100644 --- a/src/components/club/HorizontalClubCard.tsx +++ b/src/components/club/HorizontalClubCard.tsx @@ -1,49 +1,53 @@ -import React from 'react'; -import Image from 'next/image'; -import { type SelectClub as Club } from '@src/server/db/models'; -import { type Session } from 'next-auth'; -import JoinButton from './JoinButton'; -import Link from 'next/link'; - -interface HorizontalClubCardProps { - club: Club; - session: Session | null; -} - -const HorizontalClubCard: React.FC = ({ club, session }) => { - const desc = - club.description.length > 50 - ? club.description.slice(0, 150) + '...' - : club.description; - const name = club.name.length > 20 ? club.name.slice(0, 30) + '...' : club.name; - - return ( -
-
- {club.name} -
-
-
-

{name}

-
- - - Learn More - -
-
-

{desc}

-
-
- ); -}; - -export default HorizontalClubCard; \ No newline at end of file +import React from 'react'; +import Image from 'next/image'; +import { type SelectClub as Club } from '@src/server/db/models'; +import { type Session } from 'next-auth'; +import JoinButton from './JoinButton'; +import Link from 'next/link'; + +interface HorizontalClubCardProps { + club: Club; + session: Session | null; +} + +const HorizontalClubCard: React.FC = ({ + club, + session, +}) => { + const desc = + club.description.length > 50 + ? club.description.slice(0, 150) + '...' + : club.description; + const name = + club.name.length > 20 ? club.name.slice(0, 30) + '...' : club.name; + + return ( +
+
+ {club.name} +
+
+
+

{name}

+
+ + + Learn More + +
+
+

{desc}

+
+
+ ); +}; + +export default HorizontalClubCard;