about summary refs log tree commit diff
path: root/src/view/com/modals/AltImage.tsx
diff options
context:
space:
mode:
authorOllie H <renahlee@outlook.com>2023-05-09 12:55:44 -0700
committerGitHub <noreply@github.com>2023-05-09 14:55:44 -0500
commitb0ebb6c9d17f9f6f78bf13fd2a0ba89d83a7c2a8 (patch)
tree45e68261fe810ea19a1aec76674c1091faa00fb8 /src/view/com/modals/AltImage.tsx
parent8f6b5d3df9b5a5bb61514497f3f25289513ef119 (diff)
downloadvoidsky-b0ebb6c9d17f9f6f78bf13fd2a0ba89d83a7c2a8.tar.zst
Update web image editor (#588)
* Update web image editor

* Delete type-assertions.ts

* Re-add getKeys

* Uncomment rotation code

* Revert "Uncomment rotation code"

This reverts commit 6269f3b928c2e5cacaf5d0ff5323fe975ee48eab.

* Shuffle dependencies and update mobile resolution

* Update ImageEditor modal layout for mobile

* Avoid accidental closes of the EditImage modal

---------

Co-authored-by: Paul Frazee <pfrazee@gmail.com>
Diffstat (limited to 'src/view/com/modals/AltImage.tsx')
-rw-r--r--src/view/com/modals/AltImage.tsx1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/view/com/modals/AltImage.tsx b/src/view/com/modals/AltImage.tsx
index 0359359cc..07270d557 100644
--- a/src/view/com/modals/AltImage.tsx
+++ b/src/view/com/modals/AltImage.tsx
@@ -24,7 +24,6 @@ export function Component({image}: Props) {
   const [altText, setAltText] = useState(image.altText)
 
   const onPressSave = useCallback(() => {
-    setAltText(altText)
     image.setAltText(altText)
     store.shell.closeModal()
   }, [store, image, altText])