@@ -4,93 +4,96 @@ import React, { useEffect } from "react";
4
4
import { BrowserRouter as Router , Switch , Route } from "react-router-dom" ;
5
5
6
6
// 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";
10
10
import 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";
13
13
import 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";
16
16
import 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";
25
25
import "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";
33
33
import ViewCertificate from "./pages/certifgen/ViewCertificate" ;
34
34
35
35
function App ( ) {
36
- useEffect ( ( ) => {
37
- AOS . init ( ) ;
38
- } , [ ] ) ;
36
+ // useEffect(() => {
37
+ // AOS.init();
38
+ // }, []);
39
39
return (
40
40
< Router >
41
- < ScrollToTop >
41
+ { /* <ScrollToTop> */ }
42
42
< Switch >
43
43
{ /* Admin Routes */ }
44
- < Route exact path = "/login" component = { Login } />
44
+ { /* <Route exact path="/login" component={Login} />
45
45
<PrivateRoute exact path="/admin" component={Dashboard} />
46
46
<PrivateRoute exact path="/admin/certificate" component={CertifGen} />
47
47
<PrivateRoute
48
48
exact
49
49
path="/admin/events"
50
50
component={EventsUpdatePage}
51
- />
51
+ /> */ }
52
52
{ /* Homepage Routes */ }
53
53
< Route exact path = "/" component = { Home } />
54
- < Route exact path = "/committees/tech" component = { Tech } />
54
+ { /* <Route exact path="/committees/tech" component={Tech} />
55
55
<Route exact path="/committees/sports" component={Sports} />
56
56
<Route exact path="/committees/welfare" component={Welfare} />
57
57
<Route exact path="/committees/socult" component={Socult} />
58
- < Route exact path = "/societies" component = { Societies } />
58
+ <Route exact path="/societies" component={Societies} /> */ }
59
59
{ /* Events Route */ }
60
- < Route exact path = "/events" component = { Events } />
60
+ { /* <Route exact path="/events" component={Events} /> */ }
61
61
{ /* 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} /> */ }
64
64
{ /* Awards Route */ }
65
- < Route exact path = "/awards" component = { Awards } />
65
+ { /* <Route exact path="/awards" component={Awards} /> */ }
66
66
{ /* Contacts Routes */ }
67
- < Route exact path = "/contacts" component = { Contacts } />
67
+ { /* <Route exact path="/contacts" component={Contacts} /> */ }
68
68
{ /* ContactUs Route */ }
69
- < Route exact path = "/ContactUs" component = { ContactUs } />
69
+ { /* <Route exact path="/ContactUs" component={ContactUs} /> */ }
70
70
71
71
{ /* 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 } /> */}
74
74
75
- { /* Nominations Route */ }
76
- < Route exact path = "/nominations" component = { Nominations } />
77
-
78
75
{ /* FAQ Route */ }
79
- < Route exact path = "/faq" component = { FAQ } />
76
+ { /* <Route exact path="/faq" component={FAQ} /> */ }
80
77
81
78
{ /* Certifgen2.0 Route */ }
82
79
< Route exact path = "/certifgen/view/:id" component = { ViewCertificate } />
83
80
84
81
{ /* 404 - Not Found Route */ }
85
82
{ /* <Route component={NotFound} /> */ }
86
83
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
+ /> */ }
89
92
90
93
{ /* Other Routes */ }
91
94
{ /*<Route exact path="/gallery" component={Gallery} /> */ }
92
95
</ Switch >
93
- </ ScrollToTop >
96
+ { /* </ScrollToTop> */ }
94
97
</ Router >
95
98
) ;
96
99
}
0 commit comments