@@ -85,32 +105,38 @@ export default class Sensor extends Component {
this.props.onChangeData(id, newSettings)
}
/>
-
-
-
-
-
- {+(Math.round(this.state.value + "e+2") + "e-2")}
- {this.units}
-
-
- {this.setName()}
-
-
+ {this.state.motion ? (
+ {} : this.onClickDevice}>
+
+
Motion Sensor
+
+ ) : (
+
+
+
+
+ {+(Math.round(this.state.value + "e+2") + "e-2")}
+ {this.units}
+
+
+ {this.setName()}
+
+
+ )}
);
}