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 6269f3b928.
* 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>
This commit is contained in:
@@ -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)
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user