- {member.name} {member.pronouns} -
-- {roleOrder[idx]} -
-- {member.name} {member.pronouns} -
-- {roleOrder[4 + idx]} -
-diff --git a/client/src/components/main/MemberProfile.tsx b/client/src/components/main/MemberProfile.tsx
index 13e9e434..859d4b6b 100644
--- a/client/src/components/main/MemberProfile.tsx
+++ b/client/src/components/main/MemberProfile.tsx
@@ -20,6 +20,7 @@ export type MemberProfileData = {
link: string;
socialMediaUserName: string;
}[];
+ pk: number;
};
type MemberProfileProps = {
diff --git a/client/src/hooks/useCommittee.ts b/client/src/hooks/useCommittee.ts
index 69c6fb8a..5759947d 100644
--- a/client/src/hooks/useCommittee.ts
+++ b/client/src/hooks/useCommittee.ts
@@ -8,6 +8,11 @@ export type ApiMember = {
profile_picture: string;
pronouns: string;
about: string;
+ social_media?: {
+ link: string;
+ socialMediaUserName: string;
+ }[];
+ pk: number;
};
export function useCommittee() {
diff --git a/client/src/hooks/useMember.ts b/client/src/hooks/useMember.ts
index c564657e..0d1f0581 100644
--- a/client/src/hooks/useMember.ts
+++ b/client/src/hooks/useMember.ts
@@ -11,6 +11,7 @@ type ApiMember = {
link: string;
socialMediaUserName: string;
}[];
+ pk: number;
};
// return api member, import id number from router, is not enabled if not a number type
diff --git a/client/src/pages/about.tsx b/client/src/pages/about.tsx
index c64544aa..fee93f7e 100644
--- a/client/src/pages/about.tsx
+++ b/client/src/pages/about.tsx
@@ -1,13 +1,13 @@
import Image from "next/image";
+import Link from "next/link";
import { ApiMember, useCommittee } from "@/hooks/useCommittee";
export default function AboutPage() {
const { data: committee, isPending, error, isError } = useCommittee();
- const topRow: ApiMember[] = [];
- const bottomRow: ApiMember[] = [];
- //lists that will be populated with member objects in the committee
+ const committeeList: ApiMember[] = [];
+ //List that will be populated with member objects in the committee
const roleOrder = [
"President",
"Vice President",
@@ -44,9 +44,7 @@ export default function AboutPage() {
+
+ {roleOrder[id]} +
+- {member.name} {member.pronouns} -
-- {roleOrder[idx]} -
-- {member.name} {member.pronouns} -
-- {roleOrder[4 + idx]} -
-