@@ -11,18 +11,13 @@ import ProfileView from 'src/views/pages/ProfileView';
1111import ApplicationsView from 'src/views/pages/ApplicationsView' ;
1212import Error404View from 'src/views/pages/Error404View' ;
1313import 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' ;
2115import TermsView from './views/pages/documents/termsView' ;
2216import DocsLayout from './layouts/DocsLayout' ;
2317import PrivacyView from './views/pages/documents/privacyView' ;
2418import RefundView from './views/pages/documents/refundView' ;
2519import ScrollReset from './components/ScrollReset' ;
20+ import coursesContent from 'src/data/courses' ;
2621
2722const renderRoutes = ( ) => (
2823 < Suspense fallback = { < LoadingScreen /> } >
@@ -107,7 +102,7 @@ const renderRoutes = () => (
107102 exact
108103 render = { props => (
109104 < MainLayout >
110- < MachineLearningView { ...props } />
105+ < CoursePage course = { coursesContent . advanced . machineLearning } { ...props } />
111106 </ MainLayout >
112107 ) }
113108 />
@@ -116,7 +111,7 @@ const renderRoutes = () => (
116111 exact
117112 render = { props => (
118113 < MainLayout >
119- < AlgoJavaView { ...props } />
114+ < CoursePage course = { coursesContent . foundation . algoJava } { ...props } />
120115 </ MainLayout >
121116 ) }
122117 />
@@ -125,7 +120,7 @@ const renderRoutes = () => (
125120 exact
126121 render = { props => (
127122 < MainLayout >
128- < AlgoPythonView { ...props } />
123+ < CoursePage course = { coursesContent . foundation . algoPython } { ...props } />
129124 </ MainLayout >
130125 ) }
131126 />
@@ -134,7 +129,7 @@ const renderRoutes = () => (
134129 exact
135130 render = { props => (
136131 < MainLayout >
137- < WebFullStakView { ...props } />
132+ < CoursePage course = { coursesContent . advanced . webDevelopment } { ...props } />
138133 </ MainLayout >
139134 ) }
140135 />
@@ -143,7 +138,7 @@ const renderRoutes = () => (
143138 exact
144139 render = { props => (
145140 < MainLayout >
146- < CompetitiveJavaView { ...props } />
141+ < CoursePage course = { coursesContent . advanced . competitiveJava } { ...props } />
147142 </ MainLayout >
148143 ) }
149144 />
@@ -152,7 +147,7 @@ const renderRoutes = () => (
152147 exact
153148 render = { props => (
154149 < MainLayout >
155- < PythonDevelopmentView { ...props } />
150+ < CoursePage course = { coursesContent . foundation . devPython } { ...props } />
156151 </ MainLayout >
157152 ) }
158153 />
0 commit comments