Skip to content

Commit

Permalink
adding team page
Browse files Browse the repository at this point in the history
  • Loading branch information
isabellaalps committed Feb 5, 2025
1 parent 9a061a9 commit c5de040
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/pages/Team.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@ import sp23 from "../data/team/sp23.json";
import fa23 from "../data/team/fa23.json";
import sp24 from "../data/team/sp24.json";
import fa24 from "../data/team/fa24.json";
import sp25 from "../data/team/sp25.json";

import { duties } from "../labels/TeamLabels";
import * as utils from "./utils";

const CURRENT_SEM = "fa24";
const CURRENT_SEM = "sp25";
// TODO display older of these in a dropdown maybe?
const SEMESTERS = [
"fa17",
Expand All @@ -41,6 +42,7 @@ const SEMESTERS = [
"fa23",
"sp24",
"fa24",
"sp25",
].slice(-4);

interface NewOfficer {
Expand Down Expand Up @@ -97,6 +99,8 @@ function getOfficerTeamFromSemStr(semester: string): Officer[] {
return sp24.map(newDiscriminator);
case "fa24":
return fa24.map(newDiscriminator);
case "sp25":
return sp25.map(newDiscriminator);
default:
throw new Error(`Bad semester provided: ${semester}`);
}
Expand Down

0 comments on commit c5de040

Please sign in to comment.