diff --git a/client/src/App.js b/client/src/App.js index 434993b..9f48d30 100644 --- a/client/src/App.js +++ b/client/src/App.js @@ -1133,8 +1133,8 @@ function Lux({name, sensorName, end, duration}) { } -function SoilMoisture({name, sensorName, sensorId, end, duration}) { - const [data, loading, tickFormatter] = useSensor(sensorId, sensorName, end, duration); +function Soil({name, sensorName, end, duration}) { + const [data, loading, tickFormatter] = useSensor('soil', sensorName, end, duration); return ( - - - + + + {!!api_key ||