diff options
author | Samuel Newman <mozzius@protonmail.com> | 2025-05-06 22:50:28 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-06 22:50:28 +0300 |
commit | 4c8fd006f6a994783a43e4744a3167db7aefc159 (patch) | |
tree | 0b8350774438cbbc2b8c6e77b844ce6b677381d3 /src/view/com/modals/Modal.web.tsx | |
parent | 3f7dc9a8e5c9225ef20ce996543a1c3cfa991eb7 (diff) | |
download | voidsky-4c8fd006f6a994783a43e4744a3167db7aefc159.tar.zst |
New Edit Profile dialog on web, use new Edit Image dialog everywhere (#8220)
Diffstat (limited to 'src/view/com/modals/Modal.web.tsx')
-rw-r--r-- | src/view/com/modals/Modal.web.tsx | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/view/com/modals/Modal.web.tsx b/src/view/com/modals/Modal.web.tsx index 524780099..3374c3132 100644 --- a/src/view/com/modals/Modal.web.tsx +++ b/src/view/com/modals/Modal.web.tsx @@ -8,9 +8,7 @@ import {type Modal as ModalIface} from '#/state/modals' import {useModalControls, useModals} from '#/state/modals' import * as ChangePasswordModal from './ChangePassword' import * as CreateOrEditListModal from './CreateOrEditList' -import * as CropImageModal from './CropImage.web' import * as DeleteAccountModal from './DeleteAccount' -import * as EditProfileModal from './EditProfile' import * as InviteCodesModal from './InviteCodes' import * as ContentLanguagesSettingsModal from './lang-settings/ContentLanguagesSettings' import * as PostLanguagesSettingsModal from './lang-settings/PostLanguagesSettings' @@ -45,9 +43,6 @@ function Modal({modal}: {modal: ModalIface}) { } const onPressMask = () => { - if (modal.name === 'crop-image') { - return // dont close on mask presses during crop - } closeModal() } const onInnerPress = () => { @@ -56,14 +51,10 @@ function Modal({modal}: {modal: ModalIface}) { } let element - if (modal.name === 'edit-profile') { - element = <EditProfileModal.Component {...modal} /> - } else if (modal.name === 'create-or-edit-list') { + if (modal.name === 'create-or-edit-list') { element = <CreateOrEditListModal.Component {...modal} /> } else if (modal.name === 'user-add-remove-lists') { element = <UserAddRemoveLists.Component {...modal} /> - } else if (modal.name === 'crop-image') { - element = <CropImageModal.Component {...modal} /> } else if (modal.name === 'delete-account') { element = <DeleteAccountModal.Component /> } else if (modal.name === 'invite-codes') { |