diff --git a/smart-hut/public/index.html b/smart-hut/public/index.html index fe04f39..af4fa3e 100644 --- a/smart-hut/public/index.html +++ b/smart-hut/public/index.html @@ -3,7 +3,7 @@
diff --git a/smart-hut/src/components/dashboard/DevicePanel.js b/smart-hut/src/components/dashboard/DevicePanel.js index 0edf873..f4f3633 100644 --- a/smart-hut/src/components/dashboard/DevicePanel.js +++ b/smart-hut/src/components/dashboard/DevicePanel.js @@ -136,8 +136,8 @@ export default class DevicePanel extends Component { openModal: this.openModal, }; - var backGroundImg = - this.props.activeItem === -1 ? "" : this.props.room.image; + /*var backGroundImg = + this.props.activeItem === -1 ? "" : this.props.room.image;*/ const ds = this.state.devices ? this.state.devices : this.props.devices; return ( diff --git a/smart-hut/src/components/dashboard/devices/Dimmer.js b/smart-hut/src/components/dashboard/devices/Dimmer.js index aab7fc1..c1b6b0d 100644 --- a/smart-hut/src/components/dashboard/devices/Dimmer.js +++ b/smart-hut/src/components/dashboard/devices/Dimmer.js @@ -7,97 +7,110 @@ The user can change the state of a dimmer through an intuitive UI in SmartHut . **/ -import React, { Component, useState } from 'react'; +import React, { Component } from "react"; import { - CircularInput, - CircularProgress, - CircularThumb, - useCircularInputContext + CircularInput, + CircularProgress, + CircularThumb, } from "react-circular-input"; -import { ButtonDimmerContainer, MinusPanel, PlusPanel, ThumbText } from "./styleComponents"; +import { + ButtonDimmerContainer, + MinusPanel, + PlusPanel, + ThumbText, +} from "./styleComponents"; import Settings from "./DeviceSettings"; import { - CircularThumbStyle, - KnobDimmerStyle, - KnobProgress, - ValueStyle, - textStyle, - knobIcon, - knobContainer + CircularThumbStyle, + KnobDimmerStyle, + KnobProgress, + textStyle, + knobIcon, + knobContainer, } from "./DimmerStyle"; export class ButtonDimmer extends Component { - constructor(props) { - super(props); - this.state = {}; - }; + constructor(props) { + super(props); + this.state = {}; + } - increaseIntensity = () => { - console.log("Increase!") - }; - decreaseIntensity = () => { - console.log("Decrease!") - }; + increaseIntensity = () => { + console.log("Increase!"); + }; + decreaseIntensity = () => { + console.log("Decrease!"); + }; - componentDidMount() { - }; + componentDidMount() {} - render() { - return ( -