diff options
author | Samuel Newman <mozzius@protonmail.com> | 2024-10-29 20:55:30 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-29 20:55:30 +0000 |
commit | 1cfcffd79eb8298e628c9bb9b71570e1b1269c6a (patch) | |
tree | a7aadf22c70aafcfb6b9e74df95807b122aa1cfb /src/view/com/modals/Modal.web.tsx | |
parent | 27ff85433b7ce0f1a9d3a2e20e8ef9179a11f9ff (diff) | |
download | voidsky-1cfcffd79eb8298e628c9bb9b71570e1b1269c6a.tar.zst |
temp revert to old modal (#6005)
Diffstat (limited to 'src/view/com/modals/Modal.web.tsx')
-rw-r--r-- | src/view/com/modals/Modal.web.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/view/com/modals/Modal.web.tsx b/src/view/com/modals/Modal.web.tsx index 76b2811b1..46ced58d9 100644 --- a/src/view/com/modals/Modal.web.tsx +++ b/src/view/com/modals/Modal.web.tsx @@ -14,6 +14,7 @@ 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' @@ -61,7 +62,9 @@ function Modal({modal}: {modal: ModalIface}) { } let element - if (modal.name === 'create-or-edit-list') { + if (modal.name === 'edit-profile') { + element = <EditProfileModal.Component {...modal} /> + } else if (modal.name === 'create-or-edit-list') { element = <CreateOrEditListModal.Component {...modal} /> } else if (modal.name === 'user-add-remove-lists') { element = <UserAddRemoveLists.Component {...modal} /> |