diff --git a/src/Components/Facility/Consultations/LiveFeed.tsx b/src/Components/Facility/Consultations/LiveFeed.tsx index 7db5bb2dfbb..84734b2a8f8 100644 --- a/src/Components/Facility/Consultations/LiveFeed.tsx +++ b/src/Components/Facility/Consultations/LiveFeed.tsx @@ -1,9 +1,7 @@ -/* eslint-disable eqeqeq */ import { useEffect, useState, useRef } from "react"; import { useDispatch } from "react-redux"; import screenfull from "screenfull"; import useKeyboardShortcut from "use-keyboard-shortcut"; -import loadable from "@loadable/component"; import { listAssetBeds, partialUpdateAssetBed, @@ -15,23 +13,16 @@ import { useMSEMediaPlayer, } from "../../../Common/hooks/useMSEplayer"; import { useFeedPTZ } from "../../../Common/hooks/useFeedPTZ"; -const PageTitle = loadable(() => import("../../Common/PageTitle")); import * as Notification from "../../../Utils/Notifications.js"; -import { - Card, - CardContent, - InputLabel, - Modal, - Tooltip, -} from "@material-ui/core"; import { FeedCameraPTZHelpButton } from "./Feed"; import { AxiosError } from "axios"; -import { isNull } from "lodash"; import { BedSelect } from "../../Common/BedSelect"; import { BedModel } from "../models"; -import { LegacyTextInputField } from "../../Common/HelperInputFields"; import useWindowDimensions from "../../../Common/hooks/useWindowDimensions"; import CareIcon from "../../../CAREUI/icons/CareIcon"; +import Page from "../../Common/components/Page"; +import ConfirmDialogV2 from "../../Common/ConfirmDialogV2"; +import { FieldLabel } from "../../Form/FormFields/FormField"; const LiveFeed = (props: any) => { const middlewareHostname = @@ -294,85 +285,50 @@ const LiveFeed = (props: any) => { } return ( -
+ Preset: {toDelete.meta.preset_name} +
++ Bed: {toDelete.bed_object.name} +
+ + } + action="Delete" + variant="danger" + onClose={() => setToDelete(null)} + onConfirm={() => deletePreset(toDelete.id)} + /> )} {toUpdate && ( -