Skip to content

Commit

Permalink
feat: disable election routes
Browse files Browse the repository at this point in the history
  • Loading branch information
proffapt committed Apr 28, 2024
1 parent deca61f commit 7d96ee3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
14 changes: 6 additions & 8 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,24 +69,22 @@ function App() {
<Route exact path="/ContactUs" component={ContactUs} />

{/* Election Routes */}
<Route exact path="/nominations" component={Nominations} />
{/* <Route exact path="/nominations" component={Nominations} />
<Route exact path="/elections" component={Elections} />
<Route exact path="/elections/candidates" component={ElectionCandidates} /> */}

{/* FAQ Route */}
<Route exact path="/faq" component={FAQ} />

{/* Certifgen2.0 Route */}
<Route exact path="/certifgen/view/:id" component={ViewCertificate} />

{/* 404 - Not Found Route */}
{/* <Route component={NotFound} /> */}

{/* Live Scoreboard Route */}
{/* <Route exact path="/livescoreboard" component={LiveScoreboard} /> */}

<Route
exact
path="/elections/candidates"
component={ElectionCandidates}
/>

<Route exact path="/certifgen/view/:id" component={ViewCertificate} />
{/* Other Routes */}
{/*<Route exact path="/gallery" component={Gallery} /> */}
</Switch>
Expand Down
6 changes: 3 additions & 3 deletions src/components/Navbar/Navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,16 +134,16 @@ export default function Navbar() {
</NavLink>
</li>

{/* NOMINATIONS */}
<li className={Styles.navItem}>
{/* ELECTIONS */}
{/* <li className={Styles.navItem}>
<NavLink
to="/elections"
className={Styles.navLinks}
activeClassName={Styles.acitveLink}
>
Elections
</NavLink>
</li>
</li> */}

{/* NOMINATIONS */}
<li className={Styles.navItem}>
Expand Down

0 comments on commit 7d96ee3

Please sign in to comment.