diff options
author | Mary <148872143+mary-ext@users.noreply.github.com> | 2024-09-24 23:14:15 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-25 01:14:15 +0900 |
commit | 8ea89469ef1a7988a7b3d05716da55e9da680c35 (patch) | |
tree | e7bc8f6412ae400a2127833ec4abc823b96df2cd /src/view/com/modals/Modal.web.tsx | |
parent | dbe1df7ac7de58e02dc8f236347b0856cfb570ef (diff) | |
download | voidsky-8ea89469ef1a7988a7b3d05716da55e9da680c35.tar.zst |
MobX removal take 2 (#5381)
* mobx removal take 2 * Actually rm mobx --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
Diffstat (limited to 'src/view/com/modals/Modal.web.tsx')
-rw-r--r-- | src/view/com/modals/Modal.web.tsx | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/view/com/modals/Modal.web.tsx b/src/view/com/modals/Modal.web.tsx index c4bab6fb1..fe24695d2 100644 --- a/src/view/com/modals/Modal.web.tsx +++ b/src/view/com/modals/Modal.web.tsx @@ -15,7 +15,6 @@ import * as ChangePasswordModal from './ChangePassword' import * as CreateOrEditListModal from './CreateOrEditList' import * as CropImageModal from './crop-image/CropImage.web' import * as DeleteAccountModal from './DeleteAccount' -import * as EditImageModal from './EditImage' import * as EditProfileModal from './EditProfile' import * as InviteCodesModal from './InviteCodes' import * as ContentLanguagesSettingsModal from './lang-settings/ContentLanguagesSettings' @@ -54,11 +53,7 @@ function Modal({modal}: {modal: ModalIface}) { } const onPressMask = () => { - if ( - modal.name === 'crop-image' || - modal.name === 'edit-image' || - modal.name === 'alt-text-image' - ) { + if (modal.name === 'crop-image' || modal.name === 'alt-text-image') { return // dont close on mask presses during crop } closeModal() @@ -95,8 +90,6 @@ function Modal({modal}: {modal: ModalIface}) { element = <PostLanguagesSettingsModal.Component /> } else if (modal.name === 'alt-text-image') { element = <AltTextImageModal.Component {...modal} /> - } else if (modal.name === 'edit-image') { - element = <EditImageModal.Component {...modal} /> } else if (modal.name === 'verify-email') { element = <VerifyEmailModal.Component {...modal} /> } else if (modal.name === 'change-email') { |