@seamapi/react 2.17.0 → 2.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/elements.js +1145 -1147
- package/dist/elements.js.map +1 -1
- package/dist/index.css +6 -0
- package/dist/index.css.map +1 -1
- package/dist/index.min.css +1 -1
- package/dist/index.min.css.map +1 -1
- package/lib/ui/noise-sensor/NoiseThresholdsList.js +3 -5
- package/lib/ui/noise-sensor/NoiseThresholdsList.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/src/lib/ui/noise-sensor/NoiseThresholdsList.tsx +10 -14
- package/src/lib/version.ts +1 -1
- package/src/styles/_loading_toast.scss +7 -0
|
@@ -7,6 +7,7 @@ import { useNoiseThresholds } from 'lib/seam/noise-sensors/use-noise-thresholds.
|
|
|
7
7
|
import { DetailRow } from 'lib/ui/layout/DetailRow.js'
|
|
8
8
|
import { DetailSection } from 'lib/ui/layout/DetailSection.js'
|
|
9
9
|
import { DetailSectionGroup } from 'lib/ui/layout/DetailSectionGroup.js'
|
|
10
|
+
import { LoadingToast } from 'lib/ui/LoadingToast/LoadingToast.js'
|
|
10
11
|
|
|
11
12
|
interface NoiseThresholdsListProps {
|
|
12
13
|
device: NoiseSensorDevice
|
|
@@ -21,6 +22,14 @@ export function NoiseThresholdsList({
|
|
|
21
22
|
|
|
22
23
|
return (
|
|
23
24
|
<DetailSectionGroup>
|
|
25
|
+
<div className='seam-loading-toast-centered-wrap'>
|
|
26
|
+
<LoadingToast
|
|
27
|
+
isLoading={isInitialLoading}
|
|
28
|
+
label={t.loading}
|
|
29
|
+
top='56px'
|
|
30
|
+
/>
|
|
31
|
+
</div>
|
|
32
|
+
|
|
24
33
|
<div className='seam-detail-section-wrap'>
|
|
25
34
|
<DetailSection
|
|
26
35
|
label={t.noiseThresholds}
|
|
@@ -39,10 +48,7 @@ export function NoiseThresholdsList({
|
|
|
39
48
|
)
|
|
40
49
|
}
|
|
41
50
|
>
|
|
42
|
-
<Content
|
|
43
|
-
isInitialLoading={isInitialLoading}
|
|
44
|
-
noiseThresholds={noiseThresholds}
|
|
45
|
-
/>
|
|
51
|
+
<Content noiseThresholds={noiseThresholds} />
|
|
46
52
|
</DetailSection>
|
|
47
53
|
|
|
48
54
|
<div className='seam-detail-section-footer'>
|
|
@@ -59,20 +65,10 @@ export function NoiseThresholdsList({
|
|
|
59
65
|
}
|
|
60
66
|
|
|
61
67
|
function Content({
|
|
62
|
-
isInitialLoading,
|
|
63
68
|
noiseThresholds,
|
|
64
69
|
}: {
|
|
65
|
-
isInitialLoading: boolean
|
|
66
70
|
noiseThresholds: NoiseThresholds[] | undefined
|
|
67
71
|
}): JSX.Element | JSX.Element[] {
|
|
68
|
-
if (isInitialLoading) {
|
|
69
|
-
return (
|
|
70
|
-
<DetailRow
|
|
71
|
-
label={<span className='seam-detail-row-empty-label'>{t.loading}</span>}
|
|
72
|
-
/>
|
|
73
|
-
)
|
|
74
|
-
}
|
|
75
|
-
|
|
76
72
|
if (noiseThresholds == null || noiseThresholds.length === 0) {
|
|
77
73
|
return (
|
|
78
74
|
<DetailRow
|
package/src/lib/version.ts
CHANGED