From 493e984d7d3fa437f00844c455c0ac10c00479cf Mon Sep 17 00:00:00 2001 From: Hailey Date: Thu, 6 Jun 2024 12:11:45 -0700 Subject: [PATCH] move destructure --- src/view/com/composer/Composer.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/view/com/composer/Composer.tsx b/src/view/com/composer/Composer.tsx index de424f918d..2e9cc21431 100644 --- a/src/view/com/composer/Composer.tsx +++ b/src/view/com/composer/Composer.tsx @@ -133,14 +133,14 @@ export const ComposePost = observer(function ComposePost({ // Disable this in the composer to prevent any extra keyboard height being applied. // See https://github.com/bluesky-social/social-app/pull/4399 const keyboardContext = useKeyboardContext() + const {setEnabled} = keyboardContext React.useEffect(() => { - const {setEnabled} = keyboardContext setEnabled(false) return () => { setEnabled(true) } - }, [keyboardContext]) + }, [setEnabled]) const [isKeyboardVisible] = useIsKeyboardVisible({iosUseWillEvents: true}) const [isProcessing, setIsProcessing] = useState(false)