This repository was archived by the owner on Mar 7, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +38
-6
lines changed Expand file tree Collapse file tree 4 files changed +38
-6
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,10 @@ import AlgoPythonView from 'src/views/pages/Courses/AlgoPythonView';
17
17
import WebFullStakView from 'src/views/pages/Courses/WebFullStakView' ;
18
18
import CompetitiveJavaView from 'src/views/pages/Courses/CompetitiveJavaView' ;
19
19
import PythonDevelopmentView from 'src/views/pages/Courses/PythonDevelopmentView' ;
20
+ import TermsView from './views/pages/documents/termsView' ;
21
+ import DocsLayout from './layouts/DocsLayout' ;
22
+ import PrivacyView from './views/pages/documents/privacyView' ;
23
+ import RefundView from './views/pages/documents/refundView' ;
20
24
21
25
const renderRoutes = ( ) => (
22
26
< Suspense fallback = { < LoadingScreen /> } >
@@ -134,6 +138,34 @@ const renderRoutes = () => (
134
138
) }
135
139
/>
136
140
141
+ { /* Privacy, refund policies, and terms and conditions routes */ }
142
+ < Route
143
+ path = { `/privacy` }
144
+ exact
145
+ render = { props => (
146
+ < DocsLayout >
147
+ < PrivacyView />
148
+ </ DocsLayout >
149
+ ) }
150
+ />
151
+ < Route
152
+ path = { `/terms` }
153
+ exact
154
+ render = { props => (
155
+ < DocsLayout >
156
+ < TermsView />
157
+ </ DocsLayout >
158
+ ) }
159
+ />
160
+ < Route
161
+ path = { `/refundpolicies` }
162
+ exact
163
+ render = { props => (
164
+ < DocsLayout >
165
+ < RefundView />
166
+ </ DocsLayout >
167
+ ) }
168
+ />
137
169
< Route component = { Error404View } />
138
170
</ Switch >
139
171
</ Suspense >
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import Page from 'src/components/Page';
3
3
4
4
const Content = lazy ( ( ) => import ( '!babel-loader!mdx-loader!./Content.mdx' ) ) ;
5
5
6
- function privacyView ( ) {
6
+ function PrivacyView ( ) {
7
7
return (
8
8
< Page title = "Privacy Policy" >
9
9
< Suspense fallback = { null } >
@@ -13,4 +13,4 @@ function privacyView() {
13
13
) ;
14
14
}
15
15
16
- export default privacyView ;
16
+ export default PrivacyView ;
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import Page from 'src/components/Page';
3
3
4
4
const Content = lazy ( ( ) => import ( '!babel-loader!mdx-loader!./Content.mdx' ) ) ;
5
5
6
- function privacyView ( ) {
6
+ function RefundView ( ) {
7
7
return (
8
8
< Page title = "Privacy Policy" >
9
9
< Suspense fallback = { null } >
@@ -13,4 +13,4 @@ function privacyView() {
13
13
) ;
14
14
}
15
15
16
- export default privacyView ;
16
+ export default RefundView ;
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import Page from 'src/components/Page';
3
3
4
4
const Content = lazy ( ( ) => import ( '!babel-loader!mdx-loader!./Content.mdx' ) ) ;
5
5
6
- function termsView ( ) {
6
+ function TermsView ( ) {
7
7
return (
8
8
< Page title = "Terms of Use" >
9
9
< Suspense fallback = { null } >
@@ -13,4 +13,4 @@ function termsView() {
13
13
) ;
14
14
}
15
15
16
- export default termsView ;
16
+ export default TermsView ;
You can’t perform that action at this time.
0 commit comments