- {snapshots && snapshots.length > 0 ? (
- snapshots.map((snapshot) => (
+
+ Выбрано устройств:{" "}
+
+ {selectedDeviceUuids.length}
+
+
+
+ {snapshots && (snapshots as Snapshot[]).length > 0 ? ( // Cast snapshots
+ (snapshots as Snapshot[]).map((snapshot) => (
@@ -280,6 +414,15 @@ export const DevicesTable = observer(() => {
)}
+
>
);
diff --git a/src/widgets/MediaViewer/index.tsx b/src/widgets/MediaViewer/index.tsx
index 0a4a9ed..dc7902f 100644
--- a/src/widgets/MediaViewer/index.tsx
+++ b/src/widgets/MediaViewer/index.tsx
@@ -9,7 +9,10 @@ export interface MediaData {
filename?: string;
}
-export function MediaViewer({ media }: Readonly<{ media?: MediaData }>) {
+export function MediaViewer({
+ media,
+ className,
+}: Readonly<{ media?: MediaData; className?: string }>) {
const token = localStorage.getItem("token");
return (
) {
justifyContent: "center",
margin: "0 auto",
}}
+ className={className}
>
{media?.media_type === 1 && (
![]()