@@ -6,83 +6,135 @@ import HomeView from 'src/views/pages/HomeView';
66import CAView from 'src/views/pages/CLView' ;
77import EventsView from 'src/views/pages/EventsView' ;
88import LoadingScreen from 'src/components/LoadingScreen' ;
9- import Courses from 'src/views/pages/Courses' ;
109import CoursesView from 'src/views/pages/CoursesView' ;
1110import ProfileView from 'src/views/pages/ProfileView' ;
1211import ApplicationsView from 'src/views/pages/ApplicationsView' ;
1312
14- const renderRoutes = ( ) =>
13+ import MachineLearningView from 'src/views/pages/Courses/MachineLearningView' ;
14+ import AlgoJavaView from 'src/views/pages/Courses/AlgoJavaView' ;
15+ import AlgoPythonView from 'src/views/pages/Courses/AlgoPythonView' ;
16+ import WebFullStakView from 'src/views/pages/Courses/WebFullStakView' ;
17+ import CompetitiveJavaView from 'src/views/pages/Courses/CompetitiveJavaView' ;
18+ import PythonDevelopmentView from 'src/views/pages/Courses/PythonDevelopmentView' ;
1519
16- < Suspense fallback = { < LoadingScreen /> } >
17- < Switch >
18- < Route
19- path = "/"
20- exact
21- render = { props => (
22- < MainLayout >
23- < HomeView { ...props } />
24- </ MainLayout >
25- ) }
26- />
20+ const renderRoutes = ( ) => (
21+ < Suspense fallback = { < LoadingScreen /> } >
22+ < Switch >
23+ < Route
24+ path = "/"
25+ exact
26+ render = { props => (
27+ < MainLayout >
28+ < HomeView { ...props } />
29+ </ MainLayout >
30+ ) }
31+ />
2732
28- < Route
29- path = "/applications"
30- exact
31- render = { props => (
32- < MainLayout >
33- < ApplicationsView { ...props } />
34- </ MainLayout >
35- ) }
36- />
33+ < Route
34+ path = "/applications"
35+ exact
36+ render = { props => (
37+ < MainLayout >
38+ < ApplicationsView { ...props } />
39+ </ MainLayout >
40+ ) }
41+ />
3742
38- < Route
39- path = "/events"
40- exact
41- render = { props => (
42- < MainLayout >
43- < EventsView { ...props } />
44- </ MainLayout >
45- ) }
46- />
43+ < Route
44+ path = "/events"
45+ exact
46+ render = { props => (
47+ < MainLayout >
48+ < EventsView { ...props } />
49+ </ MainLayout >
50+ ) }
51+ />
4752
48- < Route
49- path = "/profile"
50- exact
51- render = { props => (
52- < MainLayout >
53- < ProfileView { ...props } />
54- </ MainLayout >
55- ) }
56- />
53+ < Route
54+ path = "/profile"
55+ exact
56+ render = { props => (
57+ < MainLayout >
58+ < ProfileView { ...props } />
59+ </ MainLayout >
60+ ) }
61+ />
5762
58- < Route
59- path = "/courses"
60- render = { props => (
61- < MainLayout >
62- < Courses { ...props } />
63- </ MainLayout >
64- ) }
65- />
63+ < Route
64+ path = "/courses"
65+ render = { props => (
66+ < MainLayout >
67+ < CoursesView { ...props } />
68+ </ MainLayout >
69+ ) }
70+ />
71+ < Route
72+ path = "/campusLeaders"
73+ exact
74+ render = { props => (
75+ < MainLayout >
76+ < CAView { ...props } />
77+ </ MainLayout >
78+ ) }
79+ />
6680
67- < Route
68- path = "/gallary"
69- render = { props => (
70- < MainLayout >
71- < CoursesView { ...props } />
72- </ MainLayout >
73- ) }
74- />
75- < Route
76- path = "/campusLeaders"
77- exact
78- render = { props => (
79- < MainLayout >
80- < CAView { ...props } />
81- </ MainLayout >
82- ) }
83- />
84- </ Switch >
85- </ Suspense >
81+ < Route
82+ path = { `/machine-learning-using-python` }
83+ exact
84+ render = { props => (
85+ < MainLayout >
86+ < MachineLearningView { ...props } />
87+ </ MainLayout >
88+ ) }
89+ />
90+ < Route
91+ path = { `/ds-algo-with-java` }
92+ exact
93+ render = { props => (
94+ < MainLayout >
95+ < AlgoJavaView { ...props } />
96+ </ MainLayout >
97+ ) }
98+ />
99+ < Route
100+ path = { `/ds-algo-with-python` }
101+ exact
102+ render = { props => (
103+ < MainLayout >
104+ < AlgoPythonView { ...props } />
105+ </ MainLayout >
106+ ) }
107+ />
108+ < Route
109+ path = { `/fullstack-webdev-with-js` }
110+ exact
111+ render = { props => (
112+ < MainLayout >
113+ < WebFullStakView { ...props } />
114+ </ MainLayout >
115+ ) }
116+ />
117+ < Route
118+ path = { `/competitive-programming-using-java` }
119+ exact
120+ render = { props => (
121+ < MainLayout >
122+ < CompetitiveJavaView { ...props } />
123+ </ MainLayout >
124+ ) }
125+ />
126+ < Route
127+ path = { `/application-dev-using-python` }
128+ exact
129+ render = { props => (
130+ < MainLayout >
131+ < PythonDevelopmentView { ...props } />
132+ </ MainLayout >
133+ ) }
134+ />
135+ </ Switch >
136+ </ Suspense >
137+ ) ;
86138
87139function Routes ( ) {
88140 return renderRoutes ( { } ) ;
0 commit comments