Skip to content

Commit

Permalink
Fix some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
2093ab authored and derug committed Oct 9, 2023
1 parent a863971 commit e577906
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions components/Footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const Footer = styled(({ className }) => {
<div>
{organizer[0].president.map((person, idx) => {
if (idx !== organizer[0].president.length - 1)
return <span>{person.name}</span>;
return <span key={idx}>{person.name}</span>;
else return person.name;
})}
</div>
Expand All @@ -108,7 +108,7 @@ const Footer = styled(({ className }) => {
<div>
{organizer[0].member.map((person, idx) => {
if (idx !== organizer[0].member.length - 1)
return <span>{person.name}</span>;
return <span key={idx}>{person.name}</span>;
else return person.name;
})}
</div>
Expand Down
6 changes: 3 additions & 3 deletions pages/campcontest.page.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,9 @@ const CampContest = ({ seasonList_, seasonData_ }) => {
{study.contests && <TopicTitle>{study.topic}</TopicTitle>}
<div style={{ width: "100%" }}>
{study.contests &&
Array.from(study.contests).map((contest) => {
Array.from(study.contests).map((contest, idx) => {
return (
<>
<div key={idx}>
{contest.awards && (
<ItemWrap key={contest.contest_name + "-award"}>
<ItemTitle className="hof-item-title">
Expand Down Expand Up @@ -350,7 +350,7 @@ const CampContest = ({ seasonList_, seasonData_ }) => {
</TableWrap>
</ItemWrap>
)}
</>
</div>
);
})}
</div>
Expand Down
2 changes: 1 addition & 1 deletion pages/index.page.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ const ContentItem = styled.div`
width: 100%;
`;

const SchoolWrap = styled.p`
const SchoolWrap = styled.div`
display: flex;
justify-content: space-evenly;
Expand Down

0 comments on commit e577906

Please sign in to comment.