From d9d38ce03296d1c8d897ba1b7e3517f747673f78 Mon Sep 17 00:00:00 2001 From: Florian Dejonckheere Date: Sat, 9 Dec 2023 19:59:53 +0100 Subject: [PATCH] Remove unused imports --- src/api/data.tsx | 2 +- src/api/queries/measurements.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/data.tsx b/src/api/data.tsx index 68d79e6..59d9962 100644 --- a/src/api/data.tsx +++ b/src/api/data.tsx @@ -1,4 +1,4 @@ -import { Location, Sensor, Alert, Suggestion } from '../types' +import { Location, Alert, Suggestion } from '../types' export const LOCATIONS: Location[] = [ { diff --git a/src/api/queries/measurements.tsx b/src/api/queries/measurements.tsx index 3084576..576baf0 100644 --- a/src/api/queries/measurements.tsx +++ b/src/api/queries/measurements.tsx @@ -13,7 +13,7 @@ export const useMeasurements = ( const start = moment(startTime).format() const end = moment(endTime).format() - const { isSuccess, isError, error, data } = useQueries({ + const { isSuccess, isError, data } = useQueries({ queries: sensors.map((sensor) => ({ queryKey: ['measurements', sensor.name, start, end], queryFn: () => measurements(sensor.device, sensor.sensor, start, end)