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

Commit 6b31d3b

Browse files
Adds privacy policy and terms of use (#44)
1 parent aa13a92 commit 6b31d3b

File tree

10 files changed

+225
-314
lines changed

10 files changed

+225
-314
lines changed

src/Routes.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import React, { lazy, Suspense, Fragment } from 'react';
33
import { Switch, Redirect, Route } from 'react-router-dom';
44
import MainLayout from 'src/layouts/MainLayout';
5+
import DocsLayout from 'src/layouts/DocsLayout';
56
import HomeView from 'src/views/pages/HomeView';
67
import LoadingScreen from 'src/components/LoadingScreen';
78

@@ -16,6 +17,25 @@ const routesConfig = [
1617
path: '/404',
1718
component: lazy(() => import('src/views/pages/Error404View'))
1819
},
20+
{
21+
path: '/documents',
22+
layout: DocsLayout,
23+
routes: [
24+
{
25+
exact: true,
26+
path: '/documents/privacy',
27+
component: lazy(() => import('src/views/pages/documents/privacyView'))
28+
},
29+
{
30+
exact: true,
31+
path: '/documents/terms',
32+
component: lazy(() => import('src/views/pages/documents/termsView'))
33+
},
34+
{
35+
component: () => <Redirect to="/404" />
36+
}
37+
]
38+
},
1939
{
2040
path: '*',
2141
layout: MainLayout,

src/layouts/DocsLayout/NavBar/NavItem.js

Lines changed: 0 additions & 95 deletions
This file was deleted.

src/layouts/DocsLayout/NavBar/index.js

Lines changed: 0 additions & 168 deletions
This file was deleted.

src/layouts/DocsLayout/TopBar.js

Lines changed: 12 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
11
import React from 'react';
22
import { Link as RouterLink } from 'react-router-dom';
33
import PropTypes from 'prop-types';
4-
import {
5-
AppBar,
6-
Box,
7-
Toolbar,
8-
Hidden,
9-
IconButton,
10-
Link,
11-
makeStyles
12-
} from '@material-ui/core';
13-
import { Menu as MenuIcon } from 'react-feather';
4+
import { AppBar, Box, Toolbar, makeStyles } from '@material-ui/core';
145
import Logo from 'src/components/Logo';
156

167
const useStyles = makeStyles(theme => ({
@@ -19,7 +10,13 @@ const useStyles = makeStyles(theme => ({
1910
color: theme.palette.text.primary,
2011
boxShadow: 'none',
2112
borderBottom: `1px solid ${theme.palette.divider}`,
22-
zIndex: theme.zIndex.drawer + 100
13+
zIndex: theme.zIndex.drawer + 100,
14+
paddingLeft: 70,
15+
paddingRight: 70,
16+
[theme.breakpoints.down('md')]: {
17+
paddingLeft: 15,
18+
paddingRight: 15
19+
}
2320
},
2421
toolbar: {
2522
height: 64
@@ -29,37 +26,16 @@ const useStyles = makeStyles(theme => ({
2926
}
3027
}));
3128

32-
function TopBar({ onMobileNavOpen }) {
29+
function TopBar() {
3330
const classes = useStyles();
3431

3532
return (
3633
<AppBar className={classes.root}>
3734
<Toolbar className={classes.toolbar}>
38-
<Hidden lgUp>
39-
<IconButton
40-
className={classes.menuButton}
41-
color="inherit"
42-
onClick={onMobileNavOpen}
43-
>
44-
<MenuIcon />
45-
</IconButton>
46-
</Hidden>
47-
<Hidden mdDown>
48-
<RouterLink to="/">
49-
<Logo />
50-
</RouterLink>
51-
</Hidden>
35+
<RouterLink to="/">
36+
<Logo />
37+
</RouterLink>
5238
<Box ml={2} flexGrow={1} />
53-
<Link
54-
className={classes.link}
55-
color="textSecondary"
56-
component={RouterLink}
57-
to="/app"
58-
underline="none"
59-
variant="body2"
60-
>
61-
Dashboard
62-
</Link>
6339
</Toolbar>
6440
</AppBar>
6541
);

0 commit comments

Comments
 (0)