Skip to content

Commit

Permalink
style: 💄 make code look nicer
Browse files Browse the repository at this point in the history
  • Loading branch information
surajgoraya committed Aug 23, 2024
1 parent 59da5d3 commit a0965d6
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/app/committees/program/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ export default function ProgramCommittee() {
subheading={"Behind the Scenes"}
>
<Section title={"Program Committee Members"} spacing={"bottom-only"}>
{displayNames("pc",PROGRAM_COMMITTEE)}
{displayNames("pc", PROGRAM_COMMITTEE)}
</Section>
<Section
title={"Experience Reports Program Committee"}
spacing={"bottom-only"}
>
{displayNames("exr-pc",EXPERIENCE_REPORTS_PROGRAM_COMMITTEE)}
{displayNames("exr-pc", EXPERIENCE_REPORTS_PROGRAM_COMMITTEE)}
</Section>
</Subpage>
);
Expand All @@ -41,7 +41,14 @@ function displayNames(hashID, names) {
.map((e, i) => {
if (firstLetterOfName !== e.name[0]) {
firstLetterOfName = e.name[0];
letterComp = <Letter letter={firstLetterOfName} hashID={`${hashID}-names`} className={"mb-4 mt-8"} />;
letterComp = (
<Letter
key={`${hashID}-names`}
letter={firstLetterOfName}
hashID={`${hashID}-names`}
className={"mb-4 mt-8"}
/>
);
letterChanged = true;
} else {
letterChanged = false;
Expand Down

0 comments on commit a0965d6

Please sign in to comment.