Skip to content
This repository was archived by the owner on Mar 7, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions src/Routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,23 @@ const routesConfig = [
component: lazy(() => import('src/views/pages/Error404View'))
},
{
path: '/documents',
path: '/privacy',
layout: DocsLayout,
routes: [
{
exact: true,
path: '/documents/privacy',
path: '/privacy',
component: lazy(() => import('src/views/pages/documents/privacyView'))
},
}
]
},
{
path: '/terms',
layout: DocsLayout,
routes: [
{
exact: true,
path: '/documents/terms',
path: '/terms',
component: lazy(() => import('src/views/pages/documents/termsView'))
},
{
Expand Down
8 changes: 2 additions & 6 deletions src/views/pages/HomeView/Footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,16 +219,12 @@ function Footer({ className, ...rest }) {
variant="body2"
color="textSecondary"
>
<Link
color="inherit"
component={RouterLink}
to="/documents/privacy"
>
<Link color="inherit" component={RouterLink} to="/privacy">
Privacy Policy
</Link>
{' | '}

<Link color="inherit" component={RouterLink} to="/documents/terms">
<Link color="inherit" component={RouterLink} to="/terms">
Terms of Use
</Link>
</Typography>
Expand Down
2 changes: 1 addition & 1 deletion src/views/pages/documents/privacyView/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const Content = lazy(() => import('!babel-loader!mdx-loader!./Content.mdx'));

function privacyView() {
return (
<Page title="Welcome">
<Page title="Privacy Policy">
<Suspense fallback={null}>
<Content />
</Suspense>
Expand Down
2 changes: 1 addition & 1 deletion src/views/pages/documents/termsView/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const Content = lazy(() => import('!babel-loader!mdx-loader!./Content.mdx'));

function termsView() {
return (
<Page title="Welcome">
<Page title="Terms of Use">
<Suspense fallback={null}>
<Content />
</Suspense>
Expand Down