diff options
author | Ollie H <renahlee@outlook.com> | 2023-05-01 11:59:17 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-01 13:59:17 -0500 |
commit | dbb3c5c15524c517291356a4918d043348906aad (patch) | |
tree | 8b7a38c2d5c56c34b43dcbddccf640e8c9a52ad3 /src/view/com/modals/Modal.tsx | |
parent | 0ec98c77ef65ff74e83b314d8eed9ef9b07d47d3 (diff) | |
download | voidsky-dbb3c5c15524c517291356a4918d043348906aad.tar.zst |
Image alt text view modal (#551)
* Image alt text view modal * Minor style tweaks --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
Diffstat (limited to 'src/view/com/modals/Modal.tsx')
-rw-r--r-- | src/view/com/modals/Modal.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/view/com/modals/Modal.tsx b/src/view/com/modals/Modal.tsx index df7d7f042..2e053e3ad 100644 --- a/src/view/com/modals/Modal.tsx +++ b/src/view/com/modals/Modal.tsx @@ -13,6 +13,7 @@ import * as ServerInputModal from './ServerInput' import * as ReportPostModal from './ReportPost' import * as RepostModal from './Repost' import * as AltImageModal from './AltImage' +import * as AltImageReadModal from './AltImageRead' import * as ReportAccountModal from './ReportAccount' import * as DeleteAccountModal from './DeleteAccount' import * as ChangeHandleModal from './ChangeHandle' @@ -74,6 +75,9 @@ export const ModalsContainer = observer(function ModalsContainer() { } else if (activeModal?.name === 'alt-text-image') { snapPoints = AltImageModal.snapPoints element = <AltImageModal.Component {...activeModal} /> + } else if (activeModal?.name === 'alt-text-image-read') { + snapPoints = AltImageReadModal.snapPoints + element = <AltImageReadModal.Component {...activeModal} /> } else if (activeModal?.name === 'change-handle') { snapPoints = ChangeHandleModal.snapPoints element = <ChangeHandleModal.Component {...activeModal} /> |