diff --git a/src/Components/Facility/Consultations/LiveFeed.tsx b/src/Components/Facility/Consultations/LiveFeed.tsx index 621a0baf0aa..a2d4eb9ee99 100644 --- a/src/Components/Facility/Consultations/LiveFeed.tsx +++ b/src/Components/Facility/Consultations/LiveFeed.tsx @@ -25,6 +25,7 @@ import { FieldLabel } from "../../Form/FormFields/FormField"; import useFullscreen from "../../../Common/hooks/useFullscreen"; import ReactPlayer from "react-player"; import { isIOS } from "../../../Utils/utils"; +import TextFormField from "../../Form/FormFields/TextFormField"; const LiveFeed = (props: any) => { const middlewareHostname = props.middlewareHostname; @@ -39,7 +40,7 @@ const LiveFeed = (props: any) => { ); const [videoStartTime, setVideoStartTime] = useState(null); const [bed, setBed] = useState({}); - const [preset, setNewPreset] = useState(""); + const [presetName, setPresetName] = useState(""); const [loading, setLoading] = useState(); const dispatch: any = useDispatch(); const [page, setPage] = useState({ @@ -145,7 +146,7 @@ const LiveFeed = (props: any) => { const updatePreset = async (currentPreset: any) => { const data = { bed_id: bed.id, - preset_name: preset, + preset_name: presetName, }; const response = await dispatch( partialUpdateAssetBed( @@ -187,7 +188,7 @@ const LiveFeed = (props: any) => { }, []); useEffect(() => { - setNewPreset(toUpdate?.meta?.preset_name); + setPresetName(toUpdate?.meta?.preset_name); setBed(toUpdate?.bed_object); }, [toUpdate]); @@ -334,23 +335,30 @@ const LiveFeed = (props: any) => { setToUpdate(null)} onConfirm={() => updatePreset(toUpdate)} > -
- Bed - setBed(selected as BedModel)} - selected={bed} - error="" - multiple={false} - location={cameraAsset.location_id} - facility={cameraAsset.facility_id} +
+ setPresetName(value)} /> +
+ Bed + setBed(selected as BedModel)} + selected={bed} + error="" + multiple={false} + location={cameraAsset.location_id} + facility={cameraAsset.facility_id} + /> +
)}