diff --git a/client/src/App.js b/client/src/App.js index 20d8231..5ea73a7 100644 --- a/client/src/App.js +++ b/client/src/App.js @@ -634,52 +634,6 @@ function BedroomSleep({end, duration}) { ); } -function Lux({name, sensorName, end, duration}) { - const [data, loading, tickFormatter, ticks] = useSensor('lux', sensorName, end, duration); - - return ( - x.lux?.toFixed(1) + ' lx'} - loading={loading} - > - - - - - - v.toFixed(1) + units[name]} - labelFormatter={timeStr => moment(timeStr).tz('America/Edmonton').format('ddd MMM DD HH:mm')} - separator=': ' - /> - - - - - - ); -} - function MultiLineChart({title, measurement, dataKey, sensors, colors, end, duration, yDomain, unitKey, transform}) { const [data, setData] = useState(false); const [loading, setLoading] = useState(false); @@ -904,10 +858,17 @@ function Graphs({end, duration}) { - - - - +