From e5779068ab649e0d63fbceae5c45ac5292670d64 Mon Sep 17 00:00:00 2001 From: 2093ab Date: Tue, 3 Oct 2023 15:32:40 +0900 Subject: [PATCH] Fix some warnings --- components/Footer.js | 4 ++-- pages/campcontest.page.js | 6 +++--- pages/index.page.js | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/components/Footer.js b/components/Footer.js index 0089226..1c7468c 100644 --- a/components/Footer.js +++ b/components/Footer.js @@ -97,7 +97,7 @@ const Footer = styled(({ className }) => {
{organizer[0].president.map((person, idx) => { if (idx !== organizer[0].president.length - 1) - return {person.name}; + return {person.name}; else return person.name; })}
@@ -108,7 +108,7 @@ const Footer = styled(({ className }) => {
{organizer[0].member.map((person, idx) => { if (idx !== organizer[0].member.length - 1) - return {person.name}; + return {person.name}; else return person.name; })}
diff --git a/pages/campcontest.page.js b/pages/campcontest.page.js index 7d8574f..96b6285 100644 --- a/pages/campcontest.page.js +++ b/pages/campcontest.page.js @@ -234,9 +234,9 @@ const CampContest = ({ seasonList_, seasonData_ }) => { {study.contests && {study.topic}}
{study.contests && - Array.from(study.contests).map((contest) => { + Array.from(study.contests).map((contest, idx) => { return ( - <> +
{contest.awards && ( @@ -350,7 +350,7 @@ const CampContest = ({ seasonList_, seasonData_ }) => { )} - +
); })}
diff --git a/pages/index.page.js b/pages/index.page.js index 82367c9..854f6b8 100644 --- a/pages/index.page.js +++ b/pages/index.page.js @@ -317,7 +317,7 @@ const ContentItem = styled.div` width: 100%; `; -const SchoolWrap = styled.p` +const SchoolWrap = styled.div` display: flex; justify-content: space-evenly;