diff --git a/src/lib/ui/noise-sensor/NoiseThresholdsList.tsx b/src/lib/ui/noise-sensor/NoiseThresholdsList.tsx index 85866be24..bd26cb5c5 100644 --- a/src/lib/ui/noise-sensor/NoiseThresholdsList.tsx +++ b/src/lib/ui/noise-sensor/NoiseThresholdsList.tsx @@ -7,6 +7,7 @@ import { useNoiseThresholds } from 'lib/seam/noise-sensors/use-noise-thresholds. import { DetailRow } from 'lib/ui/layout/DetailRow.js' import { DetailSection } from 'lib/ui/layout/DetailSection.js' import { DetailSectionGroup } from 'lib/ui/layout/DetailSectionGroup.js' +import { LoadingToast } from 'lib/ui/LoadingToast/LoadingToast.js' interface NoiseThresholdsListProps { device: NoiseSensorDevice @@ -21,6 +22,14 @@ export function NoiseThresholdsList({ return ( +
+ +
+
- +
@@ -59,20 +65,10 @@ export function NoiseThresholdsList({ } function Content({ - isInitialLoading, noiseThresholds, }: { - isInitialLoading: boolean noiseThresholds: NoiseThresholds[] | undefined }): JSX.Element | JSX.Element[] { - if (isInitialLoading) { - return ( - {t.loading}} - /> - ) - } - if (noiseThresholds == null || noiseThresholds.length === 0) { return (