Commit 0216fabf by Giang Tran

Merge branch '05_May' into dev_phase2

parents 5c26a7f0 3ce5a4c5
...@@ -104,8 +104,7 @@ const Profile = (props) => { ...@@ -104,8 +104,7 @@ const Profile = (props) => {
}); });
props.showLoading(); props.showLoading();
const res = await verifyAccountApi(data); const res = await verifyAccountApi(data);
props.hideLoading();
console.log(res);
if (res.data.code == 200) { if (res.data.code == 200) {
setTimeout(() => { setTimeout(() => {
props.saveUserToRedux(res.data.data); props.saveUserToRedux(res.data.data);
......
...@@ -35,7 +35,6 @@ const PickerImg = (props) => { ...@@ -35,7 +35,6 @@ const PickerImg = (props) => {
ImagePicker.openPicker({ ImagePicker.openPicker({
mediaType: 'photo', mediaType: 'photo',
multiple: true, multiple: true,
cropping: true,
}).then((images) => { }).then((images) => {
setModalVisible(false); setModalVisible(false);
...@@ -47,9 +46,6 @@ const PickerImg = (props) => { ...@@ -47,9 +46,6 @@ const PickerImg = (props) => {
const onCapture = () => { const onCapture = () => {
ImagePicker.openCamera({ ImagePicker.openCamera({
mediaType: 'photo', mediaType: 'photo',
width: 300,
height: 400,
cropping: true,
}).then((image) => { }).then((image) => {
setModalVisible(false); setModalVisible(false);
......
...@@ -50,7 +50,6 @@ const PickerImgUni = (props) => { ...@@ -50,7 +50,6 @@ const PickerImgUni = (props) => {
ImagePicker.openPicker({ ImagePicker.openPicker({
mediaType: 'photo', mediaType: 'photo',
multiple: false, multiple: false,
cropping: true,
}).then((image) => { }).then((image) => {
setModalVisible(false); setModalVisible(false);
setUrlImg(image.path); setUrlImg(image.path);
...@@ -62,9 +61,6 @@ const PickerImgUni = (props) => { ...@@ -62,9 +61,6 @@ const PickerImgUni = (props) => {
if (Platform.OS == 'android') checkPermissionAndroid(); if (Platform.OS == 'android') checkPermissionAndroid();
ImagePicker.openCamera({ ImagePicker.openCamera({
mediaType: 'photo', mediaType: 'photo',
width: 300,
height: 400,
cropping: true,
}).then((image) => { }).then((image) => {
setModalVisible(false); setModalVisible(false);
setUrlImg(image.path); setUrlImg(image.path);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment