about summary refs log tree commit diff
path: root/src/state/models/ui/shell.ts
diff options
context:
space:
mode:
authorOllie H <renahlee@outlook.com>2023-05-01 11:59:17 -0700
committerGitHub <noreply@github.com>2023-05-01 13:59:17 -0500
commitdbb3c5c15524c517291356a4918d043348906aad (patch)
tree8b7a38c2d5c56c34b43dcbddccf640e8c9a52ad3 /src/state/models/ui/shell.ts
parent0ec98c77ef65ff74e83b314d8eed9ef9b07d47d3 (diff)
downloadvoidsky-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/state/models/ui/shell.ts')
-rw-r--r--src/state/models/ui/shell.ts8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/state/models/ui/shell.ts b/src/state/models/ui/shell.ts
index 797d53f81..98e98ef8e 100644
--- a/src/state/models/ui/shell.ts
+++ b/src/state/models/ui/shell.ts
@@ -47,6 +47,11 @@ export interface AltTextImageModal {
   onAltTextSet: (altText?: string) => void
 }
 
+export interface AltTextImageReadModal {
+  name: 'alt-text-image-read'
+  altText: string
+}
+
 export interface DeleteAccountModal {
   name: 'delete-account'
 }
@@ -93,8 +98,9 @@ export type Modal =
   | ReportAccountModal
   | ReportPostModal
 
-  // Posting
+  // Posts
   | AltTextImageModal
+  | AltTextImageReadModal
   | CropImageModal
   | ServerInputModal
   | RepostModal