Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove nominations page #56

Merged
merged 3 commits into from
Jan 17, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions components/Navigation.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,15 +155,6 @@ const Navigation = () => {
</Link>
</NavItem>

<NavItem>
<Link href="/nominations" passHref>
<NextNavLink
className={getNavLinkClass("/nominations")}
>
<span className="nav-link-inner--text">Nominations</span>
</NextNavLink>
</Link>
</NavItem>
KKSurendran06 marked this conversation as resolved.
Show resolved Hide resolved
</Nav>


Expand Down
11 changes: 11 additions & 0 deletions pages/nominations.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand All @@ -43,6 +45,15 @@ const Nominations = () => {
setShowModal(!showModal);
};

if (!showNominations) {
return (
<div className="container text-center">
<h1>Nominations are currently closed.</h1>
<p>Come back next year for the nominations!</p>
</div>
);
KKSurendran06 marked this conversation as resolved.
Show resolved Hide resolved
}

return (
<>
KKSurendran06 marked this conversation as resolved.
Show resolved Hide resolved
<section className="section section-lg">
Expand Down