Skip to content
This repository was archived by the owner on Mar 7, 2024. It is now read-only.

Commit 34eaa8b

Browse files
Route to Privacy, terms and conditions and refund policies in footer (#87)
1 parent ca9d48f commit 34eaa8b

File tree

4 files changed

+38
-6
lines changed

4 files changed

+38
-6
lines changed

src/Routes.js

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ import AlgoPythonView from 'src/views/pages/Courses/AlgoPythonView';
1717
import WebFullStakView from 'src/views/pages/Courses/WebFullStakView';
1818
import CompetitiveJavaView from 'src/views/pages/Courses/CompetitiveJavaView';
1919
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';
2024

2125
const 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>

src/views/pages/documents/privacyView/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Page from 'src/components/Page';
33

44
const 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;

src/views/pages/documents/refundView/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Page from 'src/components/Page';
33

44
const 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;

src/views/pages/documents/termsView/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Page from 'src/components/Page';
33

44
const 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;

0 commit comments

Comments
 (0)