diff --git a/src/Components/Officers.js b/src/Components/Officers.js index a00e167..5f8a95a 100644 --- a/src/Components/Officers.js +++ b/src/Components/Officers.js @@ -4,7 +4,8 @@ import "../CSS/Officers.css"; import ProfileCard from "./profileCard"; const Officers = () => { - + const SHOW_OFFICER_APPLICATION = false; + const APPLICATION_YEAR = "2025-2026"; const [selectedYear, setSelectedYear] = useState(null); const [teamMembers, setTeamMembers] = useState([]); const [yearOptions, setYearOptions] = useState([]); @@ -14,12 +15,12 @@ const Officers = () => { const availableYears = []; // officer data will be out at the end of June, this will update beginning of July - const defaultToThisYear = currentDate.getMonth() > 5; + const defaultToThisYear = currentDate.getMonth() > 5; // check if officer json data for the current year should be added // and exists first, then add previous years back to 2022 for (let year = currentDate.getFullYear(); year >= 2022; year--) { - if(defaultToThisYear || year !== currentDate.getFullYear()) { + if (defaultToThisYear || year !== currentDate.getFullYear()) { try { await import(`../Data/officers${year}.json`); availableYears.push(year); @@ -64,30 +65,35 @@ const Officers = () => {