diff --git a/smart-hut/src/App.js b/smart-hut/src/App.js index b003ebe..74b97a4 100644 --- a/smart-hut/src/App.js +++ b/smart-hut/src/App.js @@ -31,7 +31,6 @@ class App extends Component { let userJsonString = localStorage.getItem("token"); let exp = localStorage.getItem("exp"); let date = new Date().getTime(); - console.log(exp > date, date) if (userJsonString && exp && date < exp) { loggedIn = true; } else { @@ -53,7 +52,6 @@ class App extends Component { componentDidMount() { if (window.location) { const values = queryString.parse(window.location.search); - console.log(values); this.setState({ query : values }); diff --git a/smart-hut/src/components/dashboard/devices/Light.js b/smart-hut/src/components/dashboard/devices/Light.js index b2d3049..64460ff 100644 --- a/smart-hut/src/components/dashboard/devices/Light.js +++ b/smart-hut/src/components/dashboard/devices/Light.js @@ -36,7 +36,6 @@ export default class Light extends Component { setIntensity = (newValue) => { this.props.device.intensity = Math.round(newValue * 100) <= 1 ? 1 : Math.round(newValue * 100); - console.log(this.props.device.intensity) call.deviceUpdate(this.props.device, 'dimmableLight') .then(res => { if (res.status === 200 ) { @@ -69,7 +68,7 @@ export default class Light extends Component { render() { const intensityLightView = ( diff --git a/smart-hut/src/components/modalform.js b/smart-hut/src/components/modalform.js index 117a8c9..1e29897 100644 --- a/smart-hut/src/components/modalform.js +++ b/smart-hut/src/components/modalform.js @@ -108,12 +108,12 @@ export default class ModalWindow extends Component {

Insert the name of the room:

+ value={this.props.type === "new" ? "" : this.props.idRoom.name }/>

Insert an image of the room:

+ value={this.props.type === "new" ? "" : this.props.idRoom.images }/> @@ -126,7 +126,7 @@ export default class ModalWindow extends Component { : "" } + : null } diff --git a/smart-hut/src/views/Navbar.js b/smart-hut/src/views/Navbar.js index 109fa7a..7e65b38 100644 --- a/smart-hut/src/views/Navbar.js +++ b/smart-hut/src/views/Navbar.js @@ -36,7 +36,7 @@ class Navbar extends Component { render(){ //const { activeItem } = this.state return ( -
+
@@ -163,22 +163,21 @@ class Navbar extends Component { - - { - this.state.activeItem !== -1 ? - + + - - - - + + { + this.state.activeItem !== -1 ? + + + + : null + } - : - null - }