From d2ecd101fe7485988ede2a7b1418462f1826dc24 Mon Sep 17 00:00:00 2001 From: Hailey Date: Thu, 6 Jun 2024 11:54:21 -0700 Subject: [PATCH] rename to keyboard context for clarity --- src/view/com/composer/Composer.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/view/com/composer/Composer.tsx b/src/view/com/composer/Composer.tsx index b4759caeaa..de424f918d 100644 --- a/src/view/com/composer/Composer.tsx +++ b/src/view/com/composer/Composer.tsx @@ -132,15 +132,15 @@ 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 context = useKeyboardContext() + const keyboardContext = useKeyboardContext() React.useEffect(() => { - const {setEnabled} = context + const {setEnabled} = keyboardContext setEnabled(false) return () => { setEnabled(true) } - }, [context]) + }, [keyboardContext]) const [isKeyboardVisible] = useIsKeyboardVisible({iosUseWillEvents: true}) const [isProcessing, setIsProcessing] = useState(false)