Implement image uploading in the web composer

This commit is contained in:
Paul Frazee
2023-02-23 16:02:31 -06:00
parent 1f96e33827
commit d84f3a10f1
19 changed files with 338 additions and 281 deletions
+5 -2
View File
@@ -21,7 +21,10 @@ export const Modal = observer(function Modal() {
return null
}
const onClose = () => {
const onPressMask = () => {
if (store.shell.activeModal?.name === 'crop-image') {
return // dont close on mask presses during crop
}
store.shell.closeModal()
}
const onInnerPress = () => {
@@ -70,7 +73,7 @@ export const Modal = observer(function Modal() {
}
return (
<TouchableWithoutFeedback onPress={onClose}>
<TouchableWithoutFeedback onPress={onPressMask}>
<View style={styles.mask}>
<TouchableWithoutFeedback onPress={onInnerPress}>
<View style={[styles.container, pal.view]}>{element}</View>