destructure
This commit is contained in:
@@ -134,9 +134,11 @@ export const ComposePost = observer(function ComposePost({
|
|||||||
// See https://github.com/bluesky-social/social-app/pull/4399
|
// See https://github.com/bluesky-social/social-app/pull/4399
|
||||||
const context = useKeyboardContext()
|
const context = useKeyboardContext()
|
||||||
React.useEffect(() => {
|
React.useEffect(() => {
|
||||||
context.setEnabled(false)
|
const {setEnabled} = context
|
||||||
|
setEnabled(false)
|
||||||
|
|
||||||
return () => {
|
return () => {
|
||||||
context.setEnabled(true)
|
setEnabled(true)
|
||||||
}
|
}
|
||||||
}, [context])
|
}, [context])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user