From a808d4f79a2660cecf01b13b23aa27c7394a4327 Mon Sep 17 00:00:00 2001 From: Malted Date: Fri, 26 Jan 2024 17:23:53 +0100 Subject: [PATCH] Revert "Improve accessability field label & placeholder" This reverts commit cd3bda14ffc9ca9fc171a819c44bb2a4e8f66a36. --- components/bio.js | 4 +-- components/hcb/apply/personal-form.js | 4 +-- pages/team.js | 43 +++------------------------ 3 files changed, 8 insertions(+), 43 deletions(-) diff --git a/components/bio.js b/components/bio.js index fe539bed..00e822f7 100644 --- a/components/bio.js +++ b/components/bio.js @@ -42,8 +42,8 @@ export default function Bio({ popup = true, spanTwo = false, ...props }) { height={64} mr={3} src={ - img - // require(`../public/team/${name.split(' ')[0].toLowerCase()}.jpg`) + img || + require(`../public/team/${name.split(' ')[0].toLowerCase()}.jpg`) } alt={name} sx={{ diff --git a/components/hcb/apply/personal-form.js b/components/hcb/apply/personal-form.js index aca00eb0..43b8f264 100644 --- a/components/hcb/apply/personal-form.js +++ b/components/hcb/apply/personal-form.js @@ -164,13 +164,13 @@ export default function PersonalInfoForm({ diff --git a/pages/team.js b/pages/team.js index dc0ed202..2e7c7142 100644 --- a/pages/team.js +++ b/pages/team.js @@ -6,8 +6,7 @@ import Footer from '../components/footer' import Bio from '../components/bio' import ForceTheme from '../components/force-theme' -export default function Team({ team }) { - console.log(team.current) +export default function Team() { return ( <> @@ -82,17 +81,7 @@ export default function Team({ team }) { - {team.current.filter(m => m.department === "Board").map(m => ( - - ))} - <> - {/* */} - + /> @@ -155,17 +143,7 @@ export default function Team({ team }) { Hacker Resources Team - {team.current.filter(m => m.department === "HQ").map(m => ( - - ))} - {/* <> - - */} @@ -715,15 +692,3 @@ When not busy juggling different tasks he takes up, he enjoys tinkering & buildi ) } - -export async function getStaticProps(context) { - const res = await fetch(`https://internal.hackclub.com/team`) - const team = await res.json() - - return { - props: { - team - }, - revalidate: 10 - } -}