From f6b21809e95691298d5c8fec6754a886eb9a28fe Mon Sep 17 00:00:00 2001 From: Kristian Date: Fri, 1 Nov 2024 14:23:39 +0100 Subject: [PATCH] fix: imports for useToggleCallRecording (#1548) Fix the wrong imports in the `callUtilHooks.ts` --- packages/react-bindings/src/hooks/callUtilHooks.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/react-bindings/src/hooks/callUtilHooks.ts b/packages/react-bindings/src/hooks/callUtilHooks.ts index 128b84332..e8ce9ef83 100644 --- a/packages/react-bindings/src/hooks/callUtilHooks.ts +++ b/packages/react-bindings/src/hooks/callUtilHooks.ts @@ -1,6 +1,6 @@ import { useCallback, useEffect, useState } from 'react'; -import { useCall, useCallStateHooks } from '@stream-io/video-react-bindings'; - +import { useCall } from '../contexts'; +import { useIsCallRecordingInProgress } from './callStateHooks'; /** * Custom hook for toggling call recording in a video call. * @@ -10,7 +10,6 @@ import { useCall, useCallStateHooks } from '@stream-io/video-react-bindings'; */ export const useToggleCallRecording = () => { const call = useCall(); - const { useIsCallRecordingInProgress } = useCallStateHooks(); const isCallRecordingInProgress = useIsCallRecordingInProgress(); const [isAwaitingResponse, setIsAwaitingResponse] = useState(false);