diff --git a/src/app/components/ImageInput.js b/src/app/components/ImageInput.js
index fec7298..776c438 100644
--- a/src/app/components/ImageInput.js
+++ b/src/app/components/ImageInput.js
@@ -68,31 +68,44 @@ const launchImageLibrary = async (onChangeImage, callBack) => {
}
};
+function addNewImageBtn() {
+ return (
+
+
+
+ CÂMERA
+
+
+ );
+}
+
function ImageInput({ imageUri, onChangeImage }) {
const [modalVisible, setModalVisible] = useState(false);
return (
- {
- !imageUri
- ? setModalVisible(true)
- : removeImgage(imageUri, onChangeImage);
- }}
- >
-
- {!imageUri && (
-
- )}
- {imageUri && (
+ {imageUri && (
+ {
+ removeImgage(imageUri, onChangeImage);
+ }}
+ >
+
- )}
-
-
+
+
+ )}
+
+ {!imageUri && (
+ {
+ setModalVisible(true);
+ }}
+ >
+ {addNewImageBtn()}
+
+ )}
+
))}
- onAddImage(uri)} />
+ onAddImage(uri)} />
);
}