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';
1717import WebFullStakView from 'src/views/pages/Courses/WebFullStakView' ;
1818import CompetitiveJavaView from 'src/views/pages/Courses/CompetitiveJavaView' ;
1919import 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' ;
2024
2125const renderRoutes = ( ) => (
2226 < Suspense fallback = { < LoadingScreen /> } >
@@ -134,6 +138,34 @@ const renderRoutes = () => (
134138 ) }
135139 />
136140
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+ />
137169 < Route component = { Error404View } />
138170 </ Switch >
139171 </ Suspense >
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import Page from 'src/components/Page';
33
44const Content = lazy ( ( ) => import ( '!babel-loader!mdx-loader!./Content.mdx' ) ) ;
55
6- function privacyView ( ) {
6+ function PrivacyView ( ) {
77 return (
88 < Page title = "Privacy Policy" >
99 < Suspense fallback = { null } >
@@ -13,4 +13,4 @@ function privacyView() {
1313 ) ;
1414}
1515
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';
33
44const Content = lazy ( ( ) => import ( '!babel-loader!mdx-loader!./Content.mdx' ) ) ;
55
6- function privacyView ( ) {
6+ function RefundView ( ) {
77 return (
88 < Page title = "Privacy Policy" >
99 < Suspense fallback = { null } >
@@ -13,4 +13,4 @@ function privacyView() {
1313 ) ;
1414}
1515
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';
33
44const Content = lazy ( ( ) => import ( '!babel-loader!mdx-loader!./Content.mdx' ) ) ;
55
6- function termsView ( ) {
6+ function TermsView ( ) {
77 return (
88 < Page title = "Terms of Use" >
99 < Suspense fallback = { null } >
@@ -13,4 +13,4 @@ function termsView() {
1313 ) ;
1414}
1515
16- export default termsView ;
16+ export default TermsView ;
You can’t perform that action at this time.
0 commit comments