diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-03-06 21:37:48 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-06 21:37:48 -0600 |
commit | 2f3fc4fe4e799084799631323b73fc97820144c8 (patch) | |
tree | ea2c8da5cc4aea632c4f9092e03ed204fb82f5fb /src/view/com/modals/Modal.web.tsx | |
parent | 20de7782ba349b0249acc79b1b64841cbe414e45 (diff) | |
download | voidsky-2f3fc4fe4e799084799631323b73fc97820144c8.tar.zst |
Handle-change modal with custom domain support (#273)
* Dont append the server's domain name when a custom domain is used * Update the settings look & feel and add a tool to remove accounts from the switcher * Try not rendering the bottomsheet when no modal is active. There are cases where the bottomsheet decides to show itself when it's not supposed to. It seems obvious to do what this change is doing -- just dont render bottomsheet if no modal is active -- but previously we experienced issues with that approach. This time it seems to be working, so we're gonna yolo try it. * Implement a handle-change modal with support for custom domains (closes #65)
Diffstat (limited to 'src/view/com/modals/Modal.web.tsx')
-rw-r--r-- | src/view/com/modals/Modal.web.tsx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/view/com/modals/Modal.web.tsx b/src/view/com/modals/Modal.web.tsx index b10b60be8..dd9a3aa65 100644 --- a/src/view/com/modals/Modal.web.tsx +++ b/src/view/com/modals/Modal.web.tsx @@ -12,6 +12,7 @@ import * as ReportPostModal from './ReportPost' import * as ReportAccountModal from './ReportAccount' import * as RepostModal from './Repost' import * as CropImageModal from './crop-image/CropImage.web' +import * as ChangeHandleModal from './ChangeHandle' export const ModalsContainer = observer(function ModalsContainer() { const store = useStores() @@ -62,6 +63,8 @@ function Modal({modal}: {modal: ModalIface}) { element = <CropImageModal.Component {...modal} /> } else if (modal.name === 'repost') { element = <RepostModal.Component {...modal} /> + } else if (modal.name === 'change-handle') { + element = <ChangeHandleModal.Component {...modal} /> } else { return null } |