From 3c8393b14cf6c4f0817fe505a166f3e3879a06a4 Mon Sep 17 00:00:00 2001 From: "Tanner Collin (aider)" Date: Thu, 3 Jul 2025 22:29:32 +0000 Subject: [PATCH] refactor: Rename SoilMoisture to Soil and hardcode sensorId --- client/src/App.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 ||