small fixes and clean up

This commit is contained in:
Jacob Salvi 2020-04-25 14:46:49 +02:00
parent 71bd9cecd5
commit 1f063aebb6

View file

@ -33,6 +33,8 @@ class Device extends React.Component {
} }
renderDeviceComponent() { renderDeviceComponent() {
console.log("check here")
console.log(this.props.stateOrDevice.kind)
switch (this.props.stateOrDevice.kind) { switch (this.props.stateOrDevice.kind) {
case "curtains": case "curtains":
return <Curtains tab={this.props.tab} id={this.props.id} />; return <Curtains tab={this.props.tab} id={this.props.id} />;