Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 0 additions & 29 deletions website/src/app/[lang]/organization/page-body.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,12 @@ import {
} from '@graphql/queries/pages/organization/index.generated';
import {
boardHeadingId,
executiveDirectorHeadingId,
organizationResearchHeadingId,
scientificHeadingId,
volunteersHeadingId,
} from '@models/headings';
import {
boardParagraphsId,
executiveDirectorParagraphsId,
organizationResearchParagraphsId,
scientificParagraphsId,
} from '@models/paragraphs';
Expand All @@ -33,8 +31,6 @@ export const OrganizationPageBody: React.FC<ComponentPropsWithLocale> = async ({
variables: {
boardHeadingId,
boardParagraphsId,
executiveDirectorHeadingId,
executiveDirectorParagraphsId,
locale: lang,
organizationResearchHeadingId,
organizationResearchParagraphsId,
Expand All @@ -50,7 +46,6 @@ export const OrganizationPageBody: React.FC<ComponentPropsWithLocale> = async ({

const {
executiveDirectorHeading,
executiveDirectorParagraphs,
boardHeading,
boardParagraphs,
volunteersHeading,
Expand All @@ -62,7 +57,6 @@ export const OrganizationPageBody: React.FC<ComponentPropsWithLocale> = async ({
volunteersMembers,
scientificMembers,
researchMembers,
executiveDirectorMembers,
} = data;

const headings = [
Expand All @@ -74,7 +68,6 @@ export const OrganizationPageBody: React.FC<ComponentPropsWithLocale> = async ({
];

const allMembers = [
...(executiveDirectorMembers?.items || []),
...(boardMembers?.items || []),
...(volunteersMembers?.items || []),
...(scientificMembers?.items || []),
Expand All @@ -100,28 +93,6 @@ export const OrganizationPageBody: React.FC<ComponentPropsWithLocale> = async ({
// biome-ignore lint/security/noDangerouslySetInnerHtml: this is a safe usage
dangerouslySetInnerHTML={{ __html: JSON.stringify(jsonLd) }}
/>
<section>
<h2 id={createHashLink(executiveDirectorHeading?.content ?? '')}>
{executiveDirectorHeading?.content}
</h2>
{documentToReactComponents(executiveDirectorParagraphs?.content?.json)}

<div className={styles.organization__members}>
{executiveDirectorMembers?.items?.map((member) => {
return (
<Member
key={crypto.randomUUID()}
name={member?.name}
image={member?.image ?? null}
title={member?.title ?? null}
email={member?.email ?? null}
lang={lang}
about={documentToReactComponents(member?.about?.json)}
/>
);
})}
</div>
</section>
<section>
<h2 id={createHashLink(boardHeading?.content ?? '')}>
{boardHeading?.content}
Expand Down
10 changes: 5 additions & 5 deletions website/src/components/footer/markup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,14 @@ const Footer: React.FC<FooterProps> = ({ lang }) => {
{documentToReactComponents(contactUs?.content?.json)}

<address>
NR2F1 Foundation <br /> PO Box 274 <br />
Coppell, TX 75019-9998
NR2F1 Foundation <br /> PO Box 0588 <br />
Pflugerville, TX 78691
</address>
<a
href="mailto:leora.westbrook@nr2f1.org"
title="leora.westbrook@nr2f1.org"
href="mailto:ashlee.manjon@nr2f1.org"
title="ashlee.manjon@nr2f1.org"
>
leora.westbrook@nr2f1.org
ashlee.manjon@nr2f1.org
</a>
</div>
</div>
Expand Down
Loading
Loading