diff options
Diffstat (limited to 'src/view/shell')
-rw-r--r-- | src/view/shell/Composer.tsx | 3 | ||||
-rw-r--r-- | src/view/shell/Composer.web.tsx | 3 | ||||
-rw-r--r-- | src/view/shell/index.tsx | 6 | ||||
-rw-r--r-- | src/view/shell/index.web.tsx | 1 |
4 files changed, 4 insertions, 9 deletions
diff --git a/src/view/shell/Composer.tsx b/src/view/shell/Composer.tsx index d7c6a80b7..219a594ed 100644 --- a/src/view/shell/Composer.tsx +++ b/src/view/shell/Composer.tsx @@ -11,7 +11,6 @@ export const Composer = observer(function ComposerImpl({ winHeight, replyTo, onPost, - onClose, quote, mention, }: { @@ -19,7 +18,6 @@ export const Composer = observer(function ComposerImpl({ winHeight: number replyTo?: ComposerOpts['replyTo'] onPost?: ComposerOpts['onPost'] - onClose: () => void quote?: ComposerOpts['quote'] mention?: ComposerOpts['mention'] }) { @@ -64,7 +62,6 @@ export const Composer = observer(function ComposerImpl({ <ComposePost replyTo={replyTo} onPost={onPost} - onClose={onClose} quote={quote} mention={mention} /> diff --git a/src/view/shell/Composer.web.tsx b/src/view/shell/Composer.web.tsx index f4b2d9a4c..c3ec37e57 100644 --- a/src/view/shell/Composer.web.tsx +++ b/src/view/shell/Composer.web.tsx @@ -13,7 +13,6 @@ export const Composer = observer(function ComposerImpl({ replyTo, quote, onPost, - onClose, mention, }: { active: boolean @@ -21,7 +20,6 @@ export const Composer = observer(function ComposerImpl({ replyTo?: ComposerOpts['replyTo'] quote: ComposerOpts['quote'] onPost?: ComposerOpts['onPost'] - onClose: () => void mention?: ComposerOpts['mention'] }) { const pal = usePalette('default') @@ -47,7 +45,6 @@ export const Composer = observer(function ComposerImpl({ replyTo={replyTo} quote={quote} onPost={onPost} - onClose={onClose} mention={mention} /> </View> diff --git a/src/view/shell/index.tsx b/src/view/shell/index.tsx index e313450f1..3119715e9 100644 --- a/src/view/shell/index.tsx +++ b/src/view/shell/index.tsx @@ -44,7 +44,10 @@ const ShellInner = observer(function ShellInnerImpl() { ) const canGoBack = useNavigationState(state => !isStateAtTabRoot(state)) React.useEffect(() => { - backHandler.init(store) + const listener = backHandler.init(store) + return () => { + listener() + } }, [store]) return ( @@ -68,7 +71,6 @@ const ShellInner = observer(function ShellInnerImpl() { </View> <Composer active={store.shell.isComposerActive} - onClose={() => store.shell.closeComposer()} winHeight={winDim.height} replyTo={store.shell.composerOpts?.replyTo} onPost={store.shell.composerOpts?.onPost} diff --git a/src/view/shell/index.web.tsx b/src/view/shell/index.web.tsx index 67f988844..3f2fed69b 100644 --- a/src/view/shell/index.web.tsx +++ b/src/view/shell/index.web.tsx @@ -48,7 +48,6 @@ const ShellInner = observer(function ShellInnerImpl() { )} <Composer active={store.shell.isComposerActive} - onClose={() => store.shell.closeComposer()} winHeight={0} replyTo={store.shell.composerOpts?.replyTo} quote={store.shell.composerOpts?.quote} |