@@ -4,93 +4,96 @@ import React, { useEffect } from "react";
44import { BrowserRouter as Router , Switch , Route } from "react-router-dom" ;
55
66// fs imports
7- import Login from "./pages/admin/Login" ;
8- import Dashboard from "./pages/admin/Dashboard/Dashboard" ;
9- import ContactUs from "./pages/ContactUs/ContactUs" ;
7+ // import Login from "./pages/admin/Login";
8+ // import Dashboard from "./pages/admin/Dashboard/Dashboard";
9+ // import ContactUs from "./pages/ContactUs/ContactUs";
1010import Home from "./pages/Homepage/Home" ;
11- import NotFound from "./pages/NotFound" ;
12- import PrivateRoute from "./routes/PrivateRoute" ;
11+ // import NotFound from "./pages/NotFound";
12+ // import PrivateRoute from "./routes/PrivateRoute";
1313import Contacts from "./pages/Contacts/Contacts" ;
14- import Awards from "./pages/Awards/Awards" ;
15- import Societies from "./pages/Societies/Societies" ;
14+ // import Awards from "./pages/Awards/Awards";
15+ // import Societies from "./pages/Societies/Societies";
1616import Events from "./pages/Events/Events" ;
17- import ScrollToTop from "./components/ScrollToTop" ;
18- import Gallery from "./pages/Gallery/Gallery" ;
19- import FAQ from "./pages/FAQ/FAQ" ;
20- import Tech from "./pages/Committees/2021/Tech" ;
21- import Sports from "./pages/Committees/2021/Sports" ;
22- import Welfare from "./pages/Committees/2021/Welfare" ;
23- import Socult from "./pages/Committees/2021/Socult" ;
24- import AOS from "aos" ;
17+ // import ScrollToTop from "./components/ScrollToTop";
18+ // import Gallery from "./pages/Gallery/Gallery";
19+ // import FAQ from "./pages/FAQ/FAQ";
20+ // import Tech from "./pages/Committees/2021/Tech";
21+ // import Sports from "./pages/Committees/2021/Sports";
22+ // import Welfare from "./pages/Committees/2021/Welfare";
23+ // import Socult from "./pages/Committees/2021/Socult";
24+ // import AOS from "aos";
2525import "aos/dist/aos.css" ;
26- import Elections from "./pages/Elections/Elections" ;
27- import ElectionCandidates from "./pages/Elections/ElectionCandidates" ;
28- import CertifGen from "./pages/admin/CertificateGenerator/CertifGen" ;
29- import EventsUpdatePage from "./pages/admin/DataUpdate/EventsUpdatePage" ;
30- import Nominations from "./pages/Nominations/Nominations" ;
31- import LiveScoreboard from "./pages/LiveScoreboard/LiveScoreboard" ;
32- import Results from "./pages/Results/Results" ;
26+ // import Elections from "./pages/Elections/Elections";
27+ // import ElectionCandidates from "./pages/Elections/ElectionCandidates";
28+ // import CertifGen from "./pages/admin/CertificateGenerator/CertifGen";
29+ // import EventsUpdatePage from "./pages/admin/DataUpdate/EventsUpdatePage";
30+ // import Nominations from "./pages/Nominations/Nominations";
31+ // import LiveScoreboard from "./pages/LiveScoreboard/LiveScoreboard";
32+ // import Results from "./pages/Results/Results";
3333import ViewCertificate from "./pages/certifgen/ViewCertificate" ;
3434
3535function App ( ) {
36- useEffect ( ( ) => {
37- AOS . init ( ) ;
38- } , [ ] ) ;
36+ // useEffect(() => {
37+ // AOS.init();
38+ // }, []);
3939 return (
4040 < Router >
41- < ScrollToTop >
41+ { /* <ScrollToTop> */ }
4242 < Switch >
4343 { /* Admin Routes */ }
44- < Route exact path = "/login" component = { Login } />
44+ { /* <Route exact path="/login" component={Login} />
4545 <PrivateRoute exact path="/admin" component={Dashboard} />
4646 <PrivateRoute exact path="/admin/certificate" component={CertifGen} />
4747 <PrivateRoute
4848 exact
4949 path="/admin/events"
5050 component={EventsUpdatePage}
51- />
51+ /> */ }
5252 { /* Homepage Routes */ }
5353 < Route exact path = "/" component = { Home } />
54- < Route exact path = "/committees/tech" component = { Tech } />
54+ { /* <Route exact path="/committees/tech" component={Tech} />
5555 <Route exact path="/committees/sports" component={Sports} />
5656 <Route exact path="/committees/welfare" component={Welfare} />
5757 <Route exact path="/committees/socult" component={Socult} />
58- < Route exact path = "/societies" component = { Societies } />
58+ <Route exact path="/societies" component={Societies} /> */ }
5959 { /* Events Route */ }
60- < Route exact path = "/events" component = { Events } />
60+ { /* <Route exact path="/events" component={Events} /> */ }
6161 { /* Results Routes */ }
62- < Route exact path = "/results/gc" component = { Results } />
63- < Route exact path = "/results/interiit" component = { Results } />
62+ { /* <Route exact path="/results/gc" component={Results} />
63+ <Route exact path="/results/interiit" component={Results} /> */ }
6464 { /* Awards Route */ }
65- < Route exact path = "/awards" component = { Awards } />
65+ { /* <Route exact path="/awards" component={Awards} /> */ }
6666 { /* Contacts Routes */ }
67- < Route exact path = "/contacts" component = { Contacts } />
67+ { /* <Route exact path="/contacts" component={Contacts} /> */ }
6868 { /* ContactUs Route */ }
69- < Route exact path = "/ContactUs" component = { ContactUs } />
69+ { /* <Route exact path="/ContactUs" component={ContactUs} /> */ }
7070
7171 { /* Election Routes */ }
72- { /* <Route exact path="/elections " component={Elections } />
73- <Route exact path="/elections/candidates " component={ElectionCandidates } /> */ }
72+ { /* <Route exact path="/nominations " component={Nominations } /> */ }
73+ { /* <Route exact path="/elections" component={Elections } /> */}
7474
75- { /* Nominations Route */ }
76- < Route exact path = "/nominations" component = { Nominations } />
77-
7875 { /* FAQ Route */ }
79- < Route exact path = "/faq" component = { FAQ } />
76+ { /* <Route exact path="/faq" component={FAQ} /> */ }
8077
8178 { /* Certifgen2.0 Route */ }
8279 < Route exact path = "/certifgen/view/:id" component = { ViewCertificate } />
8380
8481 { /* 404 - Not Found Route */ }
8582 { /* <Route component={NotFound} /> */ }
8683
87- { /* Live Scoreboard Route */ }
88- { /* <Route exact path="/livescoreboard" component={LiveScoreboard} /> */ }
84+ { /* Live Scoreboard Route */ }
85+ { /* <Route exact path="/livescoreboard" component={LiveScoreboard} /> */ }
86+
87+ { /* <Route
88+ exact
89+ path="/elections/candidates"
90+ component={ElectionCandidates}
91+ /> */ }
8992
9093 { /* Other Routes */ }
9194 { /*<Route exact path="/gallery" component={Gallery} /> */ }
9295 </ Switch >
93- </ ScrollToTop >
96+ { /* </ScrollToTop> */ }
9497 </ Router >
9598 ) ;
9699}
0 commit comments