diff options
author | Ollie H <renahlee@outlook.com> | 2023-05-09 12:55:44 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-09 14:55:44 -0500 |
commit | b0ebb6c9d17f9f6f78bf13fd2a0ba89d83a7c2a8 (patch) | |
tree | 45e68261fe810ea19a1aec76674c1091faa00fb8 /src/view/com/composer | |
parent | 8f6b5d3df9b5a5bb61514497f3f25289513ef119 (diff) | |
download | voidsky-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/composer')
-rw-r--r-- | src/view/com/composer/photos/Gallery.tsx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/view/com/composer/photos/Gallery.tsx b/src/view/com/composer/photos/Gallery.tsx index 1aa0aef7a..accd96803 100644 --- a/src/view/com/composer/photos/Gallery.tsx +++ b/src/view/com/composer/photos/Gallery.tsx @@ -50,7 +50,7 @@ export const Gallery = observer(function ({gallery}: Props) { const handleEditPhoto = useCallback( (image: ImageModel) => { - gallery.crop(image) + gallery.edit(image) }, [gallery], ) @@ -121,10 +121,10 @@ export const Gallery = observer(function ({gallery}: Props) { </TouchableOpacity> <View style={imageControlsSubgroupStyle}> <TouchableOpacity - testID="cropPhotoButton" + testID="editPhotoButton" accessibilityRole="button" - accessibilityLabel="Crop image" - accessibilityHint="Opens modal for cropping image" + accessibilityLabel="Edit image" + accessibilityHint="" onPress={() => { handleEditPhoto(image) }} |