11import * as React from "react" ;
22import { SENSOR_LIST } from "../../../constants" ;
3- import { IModalContent , FEATURE_REQUEST_ON_GITHUB , TRY_IT_MAKE_CODE } from "../SensorModalUtils" ;
43import { TAG_INPUT_SVG } from "../../../svgs/tag_input_svg" ;
54import { TAG_OUTPUT_SVG } from "../../../svgs/tag_output_svg" ;
65import { GenericSliderComponent } from "../GenericSliderComponent" ;
7- import * as SENSOR_PROPERTIES from './CpxSensorProperties'
6+ import {
7+ FEATURE_REQUEST_ON_GITHUB ,
8+ IModalContent ,
9+ TRY_IT_MAKE_CODE ,
10+ } from "../SensorModalUtils" ;
11+ import * as SENSOR_PROPERTIES from "./CpxSensorProperties" ;
812
913export const GPIO_CONTENT = (
1014 onUpdateValue : ( sensor : SENSOR_LIST , value : number ) => void ,
@@ -40,8 +44,8 @@ export const LIGHT_CONTENT = (
4044 sensorValues : { [ key : string ] : number }
4145) : IModalContent => {
4246 const lightSensorValues = {
43- L : sensorValues [ SENSOR_LIST . LIGHT ]
44- }
47+ L : sensorValues [ SENSOR_LIST . LIGHT ] ,
48+ } ;
4549 return {
4650 descriptionTitle : "toolbar-light-sensor.title" ,
4751 tagInput : TAG_INPUT_SVG ,
@@ -174,8 +178,8 @@ export const TEMPERATURE_CONTENT = (
174178 sensorValues : { [ key : string ] : number }
175179) : IModalContent => {
176180 const temperatureSensorValues = {
177- T : sensorValues [ SENSOR_LIST . TEMPERATURE ]
178- }
181+ T : sensorValues [ SENSOR_LIST . TEMPERATURE ] ,
182+ } ;
179183 return {
180184 components : [
181185 < GenericSliderComponent
@@ -191,4 +195,4 @@ export const TEMPERATURE_CONTENT = (
191195 tagOutput : undefined ,
192196 tryItDescription : "toolbar-temperature-sensor.tryItDescription" ,
193197 } ;
194- } ;
198+ } ;
0 commit comments