@@ -11,18 +11,13 @@ import ProfileView from 'src/views/pages/ProfileView';
11
11
import ApplicationsView from 'src/views/pages/ApplicationsView' ;
12
12
import Error404View from 'src/views/pages/Error404View' ;
13
13
import StudentDashboardView from 'src/views/pages/StudentDashboardView' ;
14
-
15
- import MachineLearningView from 'src/views/pages/Courses/MachineLearningView' ;
16
- import AlgoJavaView from 'src/views/pages/Courses/AlgoJavaView' ;
17
- import AlgoPythonView from 'src/views/pages/Courses/AlgoPythonView' ;
18
- import WebFullStakView from 'src/views/pages/Courses/WebFullStakView' ;
19
- import CompetitiveJavaView from 'src/views/pages/Courses/CompetitiveJavaView' ;
20
- import PythonDevelopmentView from 'src/views/pages/Courses/PythonDevelopmentView' ;
14
+ import CoursePage from 'src/views/pages/Courses/CoursePage' ;
21
15
import TermsView from './views/pages/documents/termsView' ;
22
16
import DocsLayout from './layouts/DocsLayout' ;
23
17
import PrivacyView from './views/pages/documents/privacyView' ;
24
18
import RefundView from './views/pages/documents/refundView' ;
25
19
import ScrollReset from './components/ScrollReset' ;
20
+ import coursesContent from 'src/data/courses' ;
26
21
27
22
const renderRoutes = ( ) => (
28
23
< Suspense fallback = { < LoadingScreen /> } >
@@ -107,7 +102,7 @@ const renderRoutes = () => (
107
102
exact
108
103
render = { props => (
109
104
< MainLayout >
110
- < MachineLearningView { ...props } />
105
+ < CoursePage course = { coursesContent . advanced . machineLearning } { ...props } />
111
106
</ MainLayout >
112
107
) }
113
108
/>
@@ -116,7 +111,7 @@ const renderRoutes = () => (
116
111
exact
117
112
render = { props => (
118
113
< MainLayout >
119
- < AlgoJavaView { ...props } />
114
+ < CoursePage course = { coursesContent . foundation . algoJava } { ...props } />
120
115
</ MainLayout >
121
116
) }
122
117
/>
@@ -125,7 +120,7 @@ const renderRoutes = () => (
125
120
exact
126
121
render = { props => (
127
122
< MainLayout >
128
- < AlgoPythonView { ...props } />
123
+ < CoursePage course = { coursesContent . foundation . algoPython } { ...props } />
129
124
</ MainLayout >
130
125
) }
131
126
/>
@@ -134,7 +129,7 @@ const renderRoutes = () => (
134
129
exact
135
130
render = { props => (
136
131
< MainLayout >
137
- < WebFullStakView { ...props } />
132
+ < CoursePage course = { coursesContent . advanced . webDevelopment } { ...props } />
138
133
</ MainLayout >
139
134
) }
140
135
/>
@@ -143,7 +138,7 @@ const renderRoutes = () => (
143
138
exact
144
139
render = { props => (
145
140
< MainLayout >
146
- < CompetitiveJavaView { ...props } />
141
+ < CoursePage course = { coursesContent . advanced . competitiveJava } { ...props } />
147
142
</ MainLayout >
148
143
) }
149
144
/>
@@ -152,7 +147,7 @@ const renderRoutes = () => (
152
147
exact
153
148
render = { props => (
154
149
< MainLayout >
155
- < PythonDevelopmentView { ...props } />
150
+ < CoursePage course = { coursesContent . foundation . devPython } { ...props } />
156
151
</ MainLayout >
157
152
) }
158
153
/>
0 commit comments