Fix 1405 handle android back button in composer (#1446)
* handle android back button in composer * improve backHandler error handling * simplify composer onClose functionality
This commit is contained in:
parent
1f60e1a748
commit
04fda0f142
6 changed files with 37 additions and 17 deletions
|
@ -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}
|
||||
/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue