From b6912094168e1baba31f662f1d82b851a984b574 Mon Sep 17 00:00:00 2001 From: Duosi-Dai Date: Sun, 11 Aug 2024 18:35:48 +0200 Subject: [PATCH] fix formatting --- .../about/_components/OrganizationList.tsx | 92 +++++++++---------- src/app/about/_components/PersonCard.tsx | 88 +++++++++--------- src/app/about/team/page.tsx | 27 +++--- 3 files changed, 103 insertions(+), 104 deletions(-) diff --git a/src/app/about/_components/OrganizationList.tsx b/src/app/about/_components/OrganizationList.tsx index 5689734..610de88 100644 --- a/src/app/about/_components/OrganizationList.tsx +++ b/src/app/about/_components/OrganizationList.tsx @@ -6,55 +6,55 @@ import { ArrowLeftIcon, ArrowRightIcon } from "lucide-react" import { useState } from "react" const OrganizationList = ({ group }: { group: Organization }) => { - const [showOTs, setShowOTs] = useState(false) + const [showOTs, setShowOTs] = useState(false) - const handleButtonClick = () => { - setShowOTs(prevState => !prevState) - } + const handleButtonClick = () => { + setShowOTs(prevState => !prevState) + } - const projectGroup = group.people.filter( - person => - person.role.toLowerCase().includes("project group") || - person.role.toLowerCase().includes("project manager") - ) - const operationTeam = group.people.filter(person => - person.role.toLowerCase().includes("operation team") - ) + const projectGroup = group.people.filter( + person => + person.role.toLowerCase().includes("project group") || + person.role.toLowerCase().includes("project manager") + ) + const operationTeam = group.people.filter(person => + person.role.toLowerCase().includes("operation team") + ) - return ( -
-

{group.name}

-
- {projectGroup.map(person => ( - - ))} - {showOTs && - operationTeam.map(person => ( - - ))} -
- {group.name === "Project Manager" ? null : ( - - )} -
-
-
- ) + return ( +
+

{group.name}

+
+ {projectGroup.map(person => ( + + ))} + {showOTs && + operationTeam.map(person => ( + + ))} +
+ {group.name === "Project Manager" ? null : ( + + )} +
+
+
+ ) } export default OrganizationList diff --git a/src/app/about/_components/PersonCard.tsx b/src/app/about/_components/PersonCard.tsx index 7ff2e4e..bc9cf93 100644 --- a/src/app/about/_components/PersonCard.tsx +++ b/src/app/about/_components/PersonCard.tsx @@ -5,49 +5,49 @@ import Image from "next/image" import Link from "next/link" const PersonCard = ({ person }: { person: Person }) => { - return ( - <> -
- {person.picture == null || person.picture.includes("no-image") ? ( -
- -
- ) : ( -
- {person.name} -
- )} -
-

{person.name}

-

- {person.role.split("–")[1]} -

-
- {person.email != null && ( - - - - )} - {person.linkedin_url != null && ( - - - - )} -
-
-
- - ) + return ( + <> +
+ {person.picture == null || person.picture.includes("no-image") ? ( +
+ +
+ ) : ( +
+ {person.name} +
+ )} +
+

{person.name}

+

+ {person.role.split("–")[1]} +

+
+ {person.email != null && ( + + + + )} + {person.linkedin_url != null && ( + + + + )} +
+
+
+ + ) } export default PersonCard diff --git a/src/app/about/team/page.tsx b/src/app/about/team/page.tsx index 74a5d71..a567f6e 100644 --- a/src/app/about/team/page.tsx +++ b/src/app/about/team/page.tsx @@ -14,19 +14,18 @@ export default async function TeamPage() { revalidate: 3600 * 24 * 6 // 6 days (S3 caches the images for 7 days exactly, we want to revalidate before that, otherwise the images will not be loaded) } }) - - return ( - - - Meet the team -
- {organization.map(group => ( - - ))} -
-
-
- - ) + return ( + + + Meet the team +
+ {organization.map(group => ( + + ))} +
+
+
+ + ) }