revert change for closing composer on web only (#3343)
This commit is contained in:
@@ -508,7 +508,11 @@ export const ComposePost = observer(function ComposePost({
|
|||||||
title={_(msg`Discard draft?`)}
|
title={_(msg`Discard draft?`)}
|
||||||
description={_(msg`Are you sure you'd like to discard this draft?`)}
|
description={_(msg`Are you sure you'd like to discard this draft?`)}
|
||||||
onConfirm={() => {
|
onConfirm={() => {
|
||||||
discardPromptControl.close(onClose)
|
if (isWeb) {
|
||||||
|
onClose()
|
||||||
|
} else {
|
||||||
|
discardPromptControl.close(onClose)
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
confirmButtonCta={_(msg`Discard`)}
|
confirmButtonCta={_(msg`Discard`)}
|
||||||
confirmButtonColor="negative"
|
confirmButtonColor="negative"
|
||||||
|
|||||||
Reference in New Issue
Block a user