From 105d3db3cdb15fdc40205c6e5d8c89e46dc1661b Mon Sep 17 00:00:00 2001 From: KKSurendran06 Date: Sun, 14 Jan 2024 12:47:10 +0530 Subject: [PATCH 1/3] Remove nominations page --- components/Navigation.jsx | 9 --------- pages/nominations.jsx | 11 +++++++++++ 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/components/Navigation.jsx b/components/Navigation.jsx index 450b264..6fdcce8 100644 --- a/components/Navigation.jsx +++ b/components/Navigation.jsx @@ -155,15 +155,6 @@ const Navigation = () => { - - - - Nominations - - - diff --git a/pages/nominations.jsx b/pages/nominations.jsx index d28622d..d8486c8 100644 --- a/pages/nominations.jsx +++ b/pages/nominations.jsx @@ -18,6 +18,8 @@ import styles from "styles/modules/nominations.module.scss"; const Nominations = () => { const [showModal, setShowModal] = useState(false); const [nominee, setNominee] = useState({}); + const showNominations = false; // Change this to true when nominations are open + // Given a person's name, returns all roles they're nominated for const getNominatedRoles = (name) => { @@ -43,6 +45,15 @@ const Nominations = () => { setShowModal(!showModal); }; + if (!showNominations) { + return ( +
+

Nominations are currently closed.

+

Come back next year for the nominations!

+
+ ); + } + return ( <>
From ac2b8a7395a1a99a6b8297b2d0d866c72e8587ac Mon Sep 17 00:00:00 2001 From: KK Surendran <137263515+KKSurendran06@users.noreply.github.com> Date: Tue, 16 Jan 2024 20:21:08 +0530 Subject: [PATCH 2/3] Apply suggestions from code review Co-authored-by: Nicholas Langford <40455550+scorpiontornado@users.noreply.github.com> --- pages/nominations.jsx | 30 ++++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/pages/nominations.jsx b/pages/nominations.jsx index d8486c8..017c9e1 100644 --- a/pages/nominations.jsx +++ b/pages/nominations.jsx @@ -47,15 +47,37 @@ const Nominations = () => { if (!showNominations) { return ( -
-

Nominations are currently closed.

-

Come back next year for the nominations!

-
+ <> + + Nominations | UNSW Co-op Society + + +
+ + +

VOTING CLOSED

+ +
+ + + + +

+ Thank you for participating! The voting process for the new executive team has concluded. Come back at the end of this year for the next round of nominations! +

+ +
+
+
+ ); } return ( <> + + Nominations | UNSW Co-op Society +
{/* Title */} From 18dd90d11b938e1c42d560fb12d6373019e5f400 Mon Sep 17 00:00:00 2001 From: KK Surendran <137263515+KKSurendran06@users.noreply.github.com> Date: Tue, 16 Jan 2024 20:24:30 +0530 Subject: [PATCH 3/3] I have added an import statement for head in the code --- pages/nominations.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/pages/nominations.jsx b/pages/nominations.jsx index 017c9e1..aef7efe 100644 --- a/pages/nominations.jsx +++ b/pages/nominations.jsx @@ -1,4 +1,5 @@ import React from "react"; +import Head from "next/head"; // reactstrap components import { Row, Col, Container, Button } from "reactstrap";