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:
@@ -5,6 +5,7 @@ import {ProfileModel} from '../content/profile'
|
||||
import {isObj, hasProp} from 'lib/type-guards'
|
||||
import {Image as RNImage} from 'react-native-image-crop-picker'
|
||||
import {ImageModel} from '../media/image'
|
||||
import {GalleryModel} from '../media/gallery'
|
||||
|
||||
export interface ConfirmModal {
|
||||
name: 'confirm'
|
||||
@@ -37,6 +38,12 @@ export interface ReportAccountModal {
|
||||
did: string
|
||||
}
|
||||
|
||||
export interface EditImageModal {
|
||||
name: 'edit-image'
|
||||
image: ImageModel
|
||||
gallery: GalleryModel
|
||||
}
|
||||
|
||||
export interface CropImageModal {
|
||||
name: 'crop-image'
|
||||
uri: string
|
||||
@@ -102,6 +109,7 @@ export type Modal =
|
||||
// Posts
|
||||
| AltTextImageModal
|
||||
| CropImageModal
|
||||
| EditImageModal
|
||||
| ServerInputModal
|
||||
| RepostModal
|
||||
|
||||
|
||||
Reference in New Issue
Block a user