Skip to content

Commit 7d96ee3

Browse files
committed
feat: disable election routes
1 parent deca61f commit 7d96ee3

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

src/App.js

+6-8
Original file line numberDiff line numberDiff line change
@@ -69,24 +69,22 @@ function App() {
6969
<Route exact path="/ContactUs" component={ContactUs} />
7070

7171
{/* Election Routes */}
72-
<Route exact path="/nominations" component={Nominations} />
72+
{/* <Route exact path="/nominations" component={Nominations} />
7373
<Route exact path="/elections" component={Elections} />
74+
<Route exact path="/elections/candidates" component={ElectionCandidates} /> */}
7475

7576
{/* FAQ Route */}
7677
<Route exact path="/faq" component={FAQ} />
78+
79+
{/* Certifgen2.0 Route */}
80+
<Route exact path="/certifgen/view/:id" component={ViewCertificate} />
81+
7782
{/* 404 - Not Found Route */}
7883
{/* <Route component={NotFound} /> */}
7984

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

83-
<Route
84-
exact
85-
path="/elections/candidates"
86-
component={ElectionCandidates}
87-
/>
88-
89-
<Route exact path="/certifgen/view/:id" component={ViewCertificate} />
9088
{/* Other Routes */}
9189
{/*<Route exact path="/gallery" component={Gallery} /> */}
9290
</Switch>

src/components/Navbar/Navbar.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -134,16 +134,16 @@ export default function Navbar() {
134134
</NavLink>
135135
</li>
136136

137-
{/* NOMINATIONS */}
138-
<li className={Styles.navItem}>
137+
{/* ELECTIONS */}
138+
{/* <li className={Styles.navItem}>
139139
<NavLink
140140
to="/elections"
141141
className={Styles.navLinks}
142142
activeClassName={Styles.acitveLink}
143143
>
144144
Elections
145145
</NavLink>
146-
</li>
146+
</li> */}
147147

148148
{/* NOMINATIONS */}
149149
<li className={Styles.navItem}>

0 commit comments

Comments
 (0)