diff --git a/components/Navigation.jsx b/components/Navigation.jsx index de504d0..2b8eb21 100644 --- a/components/Navigation.jsx +++ b/components/Navigation.jsx @@ -54,7 +54,6 @@ const navLinks = [ ["Charity", "/charity"], ["Calendar", "/calendar"], // ["First Year FB", "/fb"], - ["EGM", "/egm"], ]; const Navigation = () => { diff --git a/pages/egm.jsx b/pages/egm.jsx deleted file mode 100644 index 86723e5..0000000 --- a/pages/egm.jsx +++ /dev/null @@ -1,168 +0,0 @@ -import React from "react"; -import Head from "next/head"; - -// reactstrap components -import { Row, Col, Container, Button } from "reactstrap"; - -// yess let's get those animations -import "animate.css"; - -// core components -import NomineeCard from "components/nominations/NomineeCard"; -import NomineeModal from "components/nominations/NomineeModal"; - -import NOMINEES from "data/NominationsData.js"; -import { useState } from "react"; - -import styles from "styles/modules/nominations.module.scss"; - -const Egm = () => { - const [showModal, setShowModal] = useState(false); - const [nominee, setNominee] = useState({}); - - // Given a person's name, returns all roles they're nominated for - const getNominatedRoles = (name) => { - const roles = []; - - for (const role of NOMINEES) { - const role_name = role.role; - - if (role.nominees.find((data) => data.name === name)) { - roles.push(role_name); - } - } - - return roles; - }; - - const clickNominee = (nominee) => { - setShowModal(true); - setNominee(nominee); - }; - - const toggleModal = () => { - setShowModal(!showModal); - }; - - return ( - <> - - EGM | UNSW Co-op Society - - -
- {/* Title */} - - -

- EGM EXEC/DIRECTOR NOMINEES -

- -
- - {/* PreferenceKey */} - - - - - - - -

- -     First Preference    - -

-      -

- -  Second Preference  - -

-
- -

- - -

Click on each nominee to find out more!

-
- - {/* Rendering all nominees using map functions */} -
- {/* Iterate over every role */} - {NOMINEES.map((role, index) => ( - <> -
-
- {role.role === "Marketing Director" ? ( -
- -

{role.role}

-
- -

- Two directors will be elected. -

-
-
- ) : ( - -

{role.role}

-
- )} -
- -
- {/* Iterate over every nominee going for that role */} - {role.nominees - // Sort by last name - .sort((a, b) => - a.name - .split(" ") - .slice(-1)[0] - .localeCompare(b.name.split(" ").slice(-1)[0]), - ) - .map((nominee, nomineeIndex) => ( - clickNominee(nominee)} - /> - ))} -
-
-
- - ))} -
-
-
-

Constitution Updates

-

- Proposed updates to the constitution can be seen{" "} - - here. - {" "} - Please read and be prepared to vote for/against during the EGM.{" "} -

-
-
- - - - ); -}; - -export default Egm;