From 9d0f67f1411a1b6793a23f49440b8274f2c6f63a Mon Sep 17 00:00:00 2001 From: Rohit Sharma Date: Thu, 4 Apr 2024 21:05:33 +0530 Subject: [PATCH] pass captured image info as an argument to callback function passed as a prop to Capture component --- packages/camera/src/components/Capture/capture.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/camera/src/components/Capture/capture.js b/packages/camera/src/components/Capture/capture.js index 8b7df7753..f274e91aa 100644 --- a/packages/camera/src/components/Capture/capture.js +++ b/packages/camera/src/components/Capture/capture.js @@ -451,8 +451,8 @@ const Capture = forwardRef(({ } }, []); - const handlePictureTaken = useCallback(() => { - onPictureTaken(); + const handlePictureTaken = useCallback((e) => { + onPictureTaken(e); if (sightBeforeRetake) { sights.dispatch({ type: Actions.sights.SET_CURRENT_SIGHT,