diff --git a/interface/src/AppRouting.js b/interface/src/AppRouting.js
index 2795482..3217c1c 100644
--- a/interface/src/AppRouting.js
+++ b/interface/src/AppRouting.js
@@ -7,13 +7,13 @@ import AuthenticationWrapper from './authentication/AuthenticationWrapper';
import AuthenticatedRoute from './authentication/AuthenticatedRoute';
import UnauthenticatedRoute from './authentication/UnauthenticatedRoute';
-import OTAConfiguration from './containers/OTAConfiguration';
import SignInPage from './containers/SignInPage';
import WiFiConnection from './sections/WiFiConnection';
import AccessPoint from './sections/AccessPoint';
import NetworkTime from './sections/NetworkTime';
import Security from './sections/Security';
+import System from './sections/System';
class AppRouting extends Component {
@@ -29,7 +29,7 @@ class AppRouting extends Component {
-
+
diff --git a/interface/src/components/MenuAppBar.js b/interface/src/components/MenuAppBar.js
index 8bdb6d8..1d36edb 100644
--- a/interface/src/components/MenuAppBar.js
+++ b/interface/src/components/MenuAppBar.js
@@ -1,6 +1,6 @@
import React from 'react';
import PropTypes from 'prop-types';
-import { Link } from 'react-router-dom';
+import { Link, withRouter } from 'react-router-dom';
import { withStyles } from '@material-ui/core/styles';
import Drawer from '@material-ui/core/Drawer';
@@ -13,23 +13,19 @@ import Divider from '@material-ui/core/Divider';
import Grow from '@material-ui/core/Grow';
import MenuItem from '@material-ui/core/MenuItem';
import MenuList from '@material-ui/core/MenuList';
-
import List from '@material-ui/core/List';
import ListItem from '@material-ui/core/ListItem';
import ListItemIcon from '@material-ui/core/ListItemIcon';
import ListItemText from '@material-ui/core/ListItemText';
-
import Popper from '@material-ui/core/Popper';
import MenuIcon from '@material-ui/icons/Menu';
import WifiIcon from '@material-ui/icons/Wifi';
-import SystemUpdateIcon from '@material-ui/icons/SystemUpdate';
+import SettingsIcon from '@material-ui/icons/Settings';
import AccessTimeIcon from '@material-ui/icons/AccessTime';
import AccountCircleIcon from '@material-ui/icons/AccountCircle';
import SettingsInputAntennaIcon from '@material-ui/icons/SettingsInputAntenna';
import LockIcon from '@material-ui/icons/Lock';
-
import ClickAwayListener from '@material-ui/core/ClickAwayListener';
-
import Paper from '@material-ui/core/Paper';
import { APP_NAME } from '../constants/App';
@@ -102,7 +98,7 @@ class MenuAppBar extends React.Component {
render() {
const { classes, theme, children, sectionTitle, authenticationContext } = this.props;
const { mobileOpen, authMenuOpen } = this.state;
-
+ const path = this.props.match.url;
const drawer = (
@@ -113,31 +109,31 @@ class MenuAppBar extends React.Component {
-
+
-
+
-
+
-
+
-
+
-
+
-
+
@@ -241,4 +237,8 @@ MenuAppBar.propTypes = {
sectionTitle: PropTypes.string.isRequired,
};
-export default withAuthenticationContext(withStyles(styles, { withTheme: true })(MenuAppBar));
+export default withAuthenticationContext(
+ withRouter(
+ withStyles(styles, { withTheme: true })(MenuAppBar)
+ )
+);
diff --git a/interface/src/containers/APStatus.js b/interface/src/containers/APStatus.js
index 41d9abe..0621601 100644
--- a/interface/src/containers/APStatus.js
+++ b/interface/src/containers/APStatus.js
@@ -118,7 +118,7 @@ class APStatus extends Component {
Loading...
-
+
:
data ? this.renderAPStatus(data, classes)
@@ -129,7 +129,7 @@ class APStatus extends Component {
+
}
diff --git a/interface/src/containers/NTPStatus.js b/interface/src/containers/NTPStatus.js
index 0ddee74..df6cbec 100644
--- a/interface/src/containers/NTPStatus.js
+++ b/interface/src/containers/NTPStatus.js
@@ -79,7 +79,8 @@ class NTPStatus extends Component {
-
+
+
0 ? unixTimeToTimeAndDate(data.last_sync) : "never"} />
@@ -98,7 +99,8 @@ class NTPStatus extends Component {
-
+
+
@@ -106,7 +108,8 @@ class NTPStatus extends Component {
-
+
+
@@ -138,7 +141,7 @@ class NTPStatus extends Component {
Loading...
-
+
:
data ? this.renderNTPStatus(data, classes)
@@ -149,7 +152,7 @@ class NTPStatus extends Component {
+
}
diff --git a/interface/src/containers/OTAConfiguration.js b/interface/src/containers/OTAConfiguration.js
deleted file mode 100644
index 66dbf3f..0000000
--- a/interface/src/containers/OTAConfiguration.js
+++ /dev/null
@@ -1,15 +0,0 @@
-import React, { Component } from 'react';
-import MenuAppBar from '../components/MenuAppBar';
-import OTASettings from './OTASettings';
-
-class OTAConfiguration extends Component {
- render() {
- return (
-
-
-
- )
- }
-}
-
-export default OTAConfiguration
diff --git a/interface/src/sections/System.js b/interface/src/sections/System.js
new file mode 100644
index 0000000..de79200
--- /dev/null
+++ b/interface/src/sections/System.js
@@ -0,0 +1,34 @@
+import React, { Component } from 'react';
+import { Redirect, Switch } from 'react-router-dom'
+
+import Tabs from '@material-ui/core/Tabs';
+import Tab from '@material-ui/core/Tab';
+
+import AuthenticatedRoute from '../authentication/AuthenticatedRoute';
+import MenuAppBar from '../components/MenuAppBar';
+import OTASettings from '../containers/OTASettings';
+
+class System extends Component {
+
+ handleTabChange = (event, path) => {
+ this.props.history.push(path);
+ };
+
+ render() {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+ )
+ }
+}
+
+export default System