From 5f85f9e32c5b0d444c485dd53719b68ed7604726 Mon Sep 17 00:00:00 2001 From: Ethan Bickel Date: Tue, 19 Nov 2024 17:31:45 -0600 Subject: [PATCH] fix formatting --- src/app/directory/search/ClubSearch.tsx | 2 +- src/components/club/HorizontalClubCard.tsx | 102 +++++++++++---------- 2 files changed, 54 insertions(+), 50 deletions(-) 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;