diff --git a/interface/src/components/MenuAppBar.js b/interface/src/components/MenuAppBar.js
index 593cd49..f3f0f15 100644
--- a/interface/src/components/MenuAppBar.js
+++ b/interface/src/components/MenuAppBar.js
@@ -74,7 +74,7 @@ const styles = theme => ({
},
authMenuActions: {
padding: theme.spacing(2),
- "& > * + *" :{
+ "& > * + *": {
marginLeft: theme.spacing(2),
}
},
@@ -118,31 +118,31 @@ class MenuAppBar extends React.Component {
-
+
-
+
-
+
-
+
-
+
@@ -189,7 +189,7 @@ class MenuAppBar extends React.Component {
-
+
diff --git a/interface/src/sections/AccessPoint.js b/interface/src/sections/AccessPoint.js
index 36ef1a1..011b673 100644
--- a/interface/src/sections/AccessPoint.js
+++ b/interface/src/sections/AccessPoint.js
@@ -8,6 +8,7 @@ import AuthenticatedRoute from '../authentication/AuthenticatedRoute';
import MenuAppBar from '../components/MenuAppBar';
import APSettings from '../containers/APSettings';
import APStatus from '../containers/APStatus';
+import { withAuthenticationContext } from '../authentication/Context.js';
class AccessPoint extends Component {
@@ -16,20 +17,21 @@ class AccessPoint extends Component {
};
render() {
+ const { authenticationContext } = this.props;
return (
-
+
-
+
)
}
}
-export default AccessPoint;
+export default withAuthenticationContext(AccessPoint);
diff --git a/interface/src/sections/NetworkTime.js b/interface/src/sections/NetworkTime.js
index 0e36b27..d695859 100644
--- a/interface/src/sections/NetworkTime.js
+++ b/interface/src/sections/NetworkTime.js
@@ -8,6 +8,7 @@ import AuthenticatedRoute from '../authentication/AuthenticatedRoute';
import MenuAppBar from '../components/MenuAppBar';
import NTPSettings from '../containers/NTPSettings';
import NTPStatus from '../containers/NTPStatus';
+import { withAuthenticationContext } from '../authentication/Context.js';
class NetworkTime extends Component {
@@ -16,11 +17,12 @@ class NetworkTime extends Component {
};
render() {
+ const { authenticationContext } = this.props;
return (
-
+
@@ -32,4 +34,4 @@ class NetworkTime extends Component {
}
}
-export default NetworkTime
+export default withAuthenticationContext(NetworkTime)
diff --git a/interface/src/sections/System.js b/interface/src/sections/System.js
index f34c9b6..2aca1cd 100644
--- a/interface/src/sections/System.js
+++ b/interface/src/sections/System.js
@@ -8,6 +8,7 @@ import AuthenticatedRoute from '../authentication/AuthenticatedRoute';
import MenuAppBar from '../components/MenuAppBar';
import OTASettings from '../containers/OTASettings';
import SystemStatus from '../containers/SystemStatus';
+import { withAuthenticationContext } from '../authentication/Context.js';
class System extends Component {
@@ -16,11 +17,12 @@ class System extends Component {
};
render() {
+ const { authenticationContext } = this.props;
return (
-
+
@@ -32,4 +34,4 @@ class System extends Component {
}
}
-export default System
+export default withAuthenticationContext(System);
diff --git a/interface/src/sections/WiFiConnection.js b/interface/src/sections/WiFiConnection.js
index a40a788..1bb2b9b 100644
--- a/interface/src/sections/WiFiConnection.js
+++ b/interface/src/sections/WiFiConnection.js
@@ -9,6 +9,7 @@ import MenuAppBar from '../components/MenuAppBar';
import WiFiNetworkScanner from '../containers/WiFiNetworkScanner';
import WiFiSettings from '../containers/WiFiSettings';
import WiFiStatus from '../containers/WiFiStatus';
+import { withAuthenticationContext } from '../authentication/Context.js';
class WiFiConnection extends Component {
@@ -35,6 +36,7 @@ class WiFiConnection extends Component {
};
render() {
+ const { authenticationContext } = this.props;
const ConfiguredWiFiNetworkScanner = (props) => {
return (
-
-
+
+
@@ -69,4 +71,4 @@ class WiFiConnection extends Component {
}
}
-export default WiFiConnection;
+export default withAuthenticationContext(WiFiConnection);