diff --git a/smart-hut/src/components/HeaderController.js b/smart-hut/src/components/HeaderController.js index 0094ad5..e4a0308 100644 --- a/smart-hut/src/components/HeaderController.js +++ b/smart-hut/src/components/HeaderController.js @@ -69,6 +69,10 @@ export class MyHeader extends React.Component { render() { return (
+ @@ -83,10 +87,6 @@ export class MyHeader extends React.Component {
-
@@ -143,22 +143,15 @@ export class MyHeader extends React.Component { - + + Share cameras} checked={this.props.cameraEnabled} toggle onChange={(e, val) => this.setCameraEnabled(val.checked)} /> - diff --git a/smart-hut/src/components/SimulationPanel.js b/smart-hut/src/components/SimulationPanel.js index 0a4b7b2..bcef43f 100644 --- a/smart-hut/src/components/SimulationPanel.js +++ b/smart-hut/src/components/SimulationPanel.js @@ -1,41 +1,97 @@ import React from "react"; import Modal from "react-modal"; -import { Button } from "semantic-ui-react"; +import { + Grid, + Divider, + Button, + Label, + Responsive, + Checkbox, + Image, + } from "semantic-ui-react"; -const ReactModalPortal = { - opacity: 0 -}; +// const ReactModalPortal = { +// opacity: 0 +// }; -const ReactModal__Overlay = { - alignItems: 'center', - display: 'flex', - justifyContent: 'center', - transition: 'opacity 200ms ease-in-out' -}; +// const ReactModal__Overlay = { +// background: 'black', +// alignItems: 'center', +// display: 'flex', +// justifyContent: 'center', +// transition: 'opacity 200ms ease-in-out' +// }; -const modal = { - background: 'grey', - color: 'white', - maxWidth: '2rem', - outline: 'none', - padding: '2rem', - textAlign: 'center' -}; +// const modal = { +// background: 'grey', +// color: 'white', +// maxWidth: '2rem', +// outline: 'none', +// padding: '2rem', +// textAlign: 'center' +// }; const SimulationPanel = (props) => ( - {props.simulationPanel && ( -

hey man

- )} - + {props.simulationPanel} + + + + + + + + + + + + + + + + + + + + + + + + + + +
); diff --git a/smart-hut/src/components/dashboard/devices/VideocamModal.js b/smart-hut/src/components/dashboard/devices/VideocamModal.js index 1062fac..ccefe1e 100644 --- a/smart-hut/src/components/dashboard/devices/VideocamModal.js +++ b/smart-hut/src/components/dashboard/devices/VideocamModal.js @@ -1,37 +1,42 @@ import React from "react"; import Modal from "react-modal"; -import { Button } from "semantic-ui-react"; - -const modal = { - opacity: 0, - alignItems: "center", - display: "flex", - justifyContent: "center", - transition: "opacity 200ms ease-in-out", - background: "grey", - color: "white", - maxWidth: "2rem", - outline: "none", - padding: "2rem", - textAlign: "center", - maxHeight: "50vh", -}; const VideocamModal = (props) => ( {props.selectedVideo && ( )} - );