Skip to content

Commit

Permalink
remove president info from left side of club info
Browse files Browse the repository at this point in the history
  • Loading branch information
nl32 committed Feb 11, 2025
1 parent b2597b5 commit 11abe24
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/components/club/listing/ClubInfoSegment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ const ClubInfoSegment: FC<{
club: NonNullable<RouterOutputs['club']['getDirectoryInfo']>;
}> = async ({ club }) => {
const isActive = await api.club.isActive({ id: club.id });
const president = (await api.club.getOfficers({ id: club.id })).find(
(officer) => officer.memberType === 'President',
);
return (
<div className="w-full rounded-lg bg-slate-100 p-10">
<div className="flex flex-col items-start justify-between md:flex-row">
Expand All @@ -30,16 +27,6 @@ const ClubInfoSegment: FC<{
<p className="text-sm text-slate-400">Founded</p>
<p className="text-right text-sm text-slate-600">May 2020</p>
</div>
{president && (
<div className="mt-2 flex w-36 justify-between">
<p className="text-sm text-slate-400">President</p>
<p className="text-right text-sm text-slate-600">
{president.userMetadata.firstName +
' ' +
president.userMetadata.lastName}
</p>
</div>
)}
<div className="mt-2 flex w-36 justify-between">
<p className="text-sm text-slate-400">Active</p>
<p className="text-right text-sm text-slate-600">
Expand Down

0 comments on commit 11abe24

Please sign in to comment.