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

Commit 0fdd256

Browse files
Changes routes for terms and privacy policy (#45)
* Changes routes for terms and privacy policy * Changes title for terms and privacy policy
1 parent 6b31d3b commit 0fdd256

File tree

4 files changed

+14
-12
lines changed

4 files changed

+14
-12
lines changed

src/Routes.js

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,23 @@ const routesConfig = [
1818
component: lazy(() => import('src/views/pages/Error404View'))
1919
},
2020
{
21-
path: '/documents',
21+
path: '/privacy',
2222
layout: DocsLayout,
2323
routes: [
2424
{
2525
exact: true,
26-
path: '/documents/privacy',
26+
path: '/privacy',
2727
component: lazy(() => import('src/views/pages/documents/privacyView'))
28-
},
28+
}
29+
]
30+
},
31+
{
32+
path: '/terms',
33+
layout: DocsLayout,
34+
routes: [
2935
{
3036
exact: true,
31-
path: '/documents/terms',
37+
path: '/terms',
3238
component: lazy(() => import('src/views/pages/documents/termsView'))
3339
},
3440
{

src/views/pages/HomeView/Footer.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -219,16 +219,12 @@ function Footer({ className, ...rest }) {
219219
variant="body2"
220220
color="textSecondary"
221221
>
222-
<Link
223-
color="inherit"
224-
component={RouterLink}
225-
to="/documents/privacy"
226-
>
222+
<Link color="inherit" component={RouterLink} to="/privacy">
227223
Privacy Policy
228224
</Link>
229225
{' | '}
230226

231-
<Link color="inherit" component={RouterLink} to="/documents/terms">
227+
<Link color="inherit" component={RouterLink} to="/terms">
232228
Terms of Use
233229
</Link>
234230
</Typography>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const Content = lazy(() => import('!babel-loader!mdx-loader!./Content.mdx'));
55

66
function privacyView() {
77
return (
8-
<Page title="Welcome">
8+
<Page title="Privacy Policy">
99
<Suspense fallback={null}>
1010
<Content />
1111
</Suspense>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const Content = lazy(() => import('!babel-loader!mdx-loader!./Content.mdx'));
55

66
function termsView() {
77
return (
8-
<Page title="Welcome">
8+
<Page title="Terms of Use">
99
<Suspense fallback={null}>
1010
<Content />
1111
</Suspense>

0 commit comments

Comments
 (0)