Skip to content

Commit

Permalink
refactor(about): committee data type
Browse files Browse the repository at this point in the history
  • Loading branch information
jsun969 committed Mar 14, 2024
1 parent 3432c14 commit a3d3526
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/app/about/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -237,15 +237,15 @@ export default function AboutPage() {
{COMMITTEE_MEMBERS.map((member, index) => (
<FancyRectangle
key={index}
colour={member.isExecCommittee ? 'yellow' : 'white'}
colour={member.exec ? 'yellow' : 'white'}
offset={'8'}
filled
rounded
fullWidth
fullHeight
>
<div
className={`h-full w-full rounded-xl border-2 border-${member.isExecCommittee ? 'yellow' : 'white'} flex flex-col justify-center bg-grey p-4`}
className={`h-full w-full rounded-xl border-2 ${member.exec ? 'border-yellow' : 'border-white'} flex flex-col justify-center bg-grey p-4`}
>
<h3 className="text-2xl font-bold">{member.name}</h3>
<p>{member.position}</p>
Expand Down
2 changes: 1 addition & 1 deletion src/data/committee-members.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
type CommitteeMember = {
name: string;
position: string;
isExecCommittee: boolean;
exec?: boolean;
};

// List of committee members with name, role and whether they are part of the
Expand Down

0 comments on commit a3d3526

Please sign in to comment.