revert change for closing composer on web only (#3343)

zio/stable
Hailey 2024-03-22 17:05:39 -07:00 committed by GitHub
parent 0baf9f9919
commit ef24611a1f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -508,7 +508,11 @@ export const ComposePost = observer(function ComposePost({
title={_(msg`Discard draft?`)}
description={_(msg`Are you sure you'd like to discard this draft?`)}
onConfirm={() => {
if (isWeb) {
onClose()
} else {
discardPromptControl.close(onClose)
}
}}
confirmButtonCta={_(msg`Discard`)}
confirmButtonColor="negative"