1
1
import Footer from './components/Footer' ;
2
2
import { useEffect , useState , useMemo } from 'react' ;
3
- import { BrowserRouter as Router , Routes , Route , useLocation , useNavigate , Navigate } from 'react-router-dom' ;
3
+ import { BrowserRouter as Router , Routes , Route } from 'react-router-dom' ;
4
4
import AllPlacement from './components/AllPlacement' ;
5
5
import Error from './pages/Errorpage' ;
6
6
import Homepage from './pages/Homepage' ;
@@ -22,7 +22,10 @@ import Alumni from './pages/Alumni';
22
22
import PhdScholar from './pages/PhdScholar' ;
23
23
import Profile from './components/Profile' ;
24
24
import FacultyLogin from './pages/FacultyLogin' ;
25
- import Otherprofilelink from './forms/facultyprofile/Otherprofilelink'
25
+ import ResearchArea from './pages/ResearchArea' ;
26
+ import ResearchLab from './pages/ResearchLab' ;
27
+ import DepartmentLab from './pages/DepartmentLab' ;
28
+ import Publications from './pages/Publications' ;
26
29
const AppRouter = ( ) => {
27
30
const footref = useRef ( ) ;
28
31
const isInViewport1 = useIsInViewport ( footref ) ;
@@ -35,24 +38,24 @@ const AppRouter = () => {
35
38
const SetScrollupmenu = ( val ) => {
36
39
setScrollupmenu ( val ) ;
37
40
}
38
- const departments = {
41
+ // const departments={
39
42
40
- "it" :"Information Technology" ,
41
- "cse" :"Computer Science and Engineering" ,
42
- "bt" :"Bio Technology" ,
43
- "ce" :"Civil Engineering" ,
44
- "ch" :"Chemical Engineering" ,
45
- "ec" :"Electronics And Communication Engineering" ,
46
- "ee" :"Electrical And Electronics Engineering" ,
47
- "ice" :"Instrumentation And Control Engineering" ,
48
- "me" :"Mechanical Engineering" ,
49
- "ipe" :"Industrial And Production Enginnering" ,
50
- "ma" :"Mathematics" ,
51
- "ph" :"Physics" ,
52
- "tt" :"Textile Technology" ,
53
- "hm" :"Humanities" ,
54
- "cy" :"chemistry"
55
- }
43
+ // "it":"Information Technology",
44
+ // "cse":"Computer Science and Engineering",
45
+ // "bt":"Bio Technology",
46
+ // "ce":"Civil Engineering",
47
+ // "ch":"Chemical Engineering",
48
+ // "ec":"Electronics And Communication Engineering",
49
+ // "ee":"Electrical And Electronics Engineering",
50
+ // "ice":"Instrumentation And Control Engineering",
51
+ // "me":"Mechanical Engineering",
52
+ // "ipe":"Industrial And Production Enginnering",
53
+ // "ma":"Mathematics",
54
+ // "ph":"Physics",
55
+ // "tt":"Textile Technology",
56
+ // "hm":"Humanities",
57
+ // "cy":"chemistry"
58
+ // }
56
59
// const ProtectorRoute=({children})=>{
57
60
// const dept=useLocation().pathname.split('/')[2];
58
61
@@ -92,15 +95,19 @@ const AppRouter = () => {
92
95
< Route path = '/dept/:dept/Programme' element = { < Programme /> } />
93
96
< Route path = '/dept/:dept/contactus' element = { < ContactUs /> } />
94
97
< Route path = '/dept/:dept/Achievement' element = { < Achievements /> } />
95
- { /* Faculty */ }
98
+ { /* Person */ }
96
99
< Route path = '/dept/:dept/Faculty' element = { < Faculty /> } />
97
100
< Route path = '/dept/:dept/Faculty/:id' element = { < Profile /> } />
98
101
< Route path = '/dept/:dept/Staff' element = { < Staff /> } />
99
102
< Route path = '/dept/:dept/Student' element = { < Students /> } />
100
103
< Route path = '/dept/:dept/Alumni' element = { < Alumni /> } />
101
104
< Route path = '/dept/:dept/PhdScholar' element = { < PhdScholar /> } />
102
105
< Route path = '/dept/:dept/login' element = { < FacultyLogin /> } />
103
-
106
+ { /* ResearchArea */ }
107
+ < Route path = '/dept/:dept/ResearchArea' element = { < ResearchArea /> } />
108
+ < Route path = '/dept/:dept/ResearchLab' element = { < ResearchLab /> } />
109
+ < Route path = '/dept/:dept/DepartmentLab' element = { < DepartmentLab /> } />
110
+ < Route path = '/dept/:dept/Publications' element = { < Publications /> } />
104
111
</ Routes >
105
112
</ div >
106
113
</ div >
0 commit comments