Commit 17989a0f by Giang Tran

fix bug upload iamge

parent 6d4f2337
......@@ -30,7 +30,7 @@ import PickerItem from '../../../components/Picker/PickerItem';
import {saveUserToRedux} from '../../../actions/users';
import I18n from '../../../helper/i18/i18n';
import {uploadImage} from '../../../apis/Functions/Upload';
import {TYPE} from '../../../components/DropdownAlert';
import {showAlert, TYPE} from '../../../components/DropdownAlert';
const {width} = Dimensions.get('window');
......@@ -67,6 +67,7 @@ const Profile = (props) => {
data.append(key, body[key]);
});
console.log('Data', data);
return data;
};
......@@ -97,7 +98,7 @@ const Profile = (props) => {
const res = await uploadImage(
createFormData(urlBack, {
scope: 'VERIFY_USER',
field_name: 'identity_before',
field_name: 'identity_after',
platform: Platform.OS,
}),
);
......
......@@ -177,10 +177,10 @@ export default {
IdentityCard: 'Chứng minh nhân dân',
Passport: 'Hộ chiếu',
CitizenIdentification: 'Căn cước công dân',
IdentityCardFrontPhoto: 'Ảnh mặt trước CNND',
IdentityCitizenCardFrontPhoto: 'Ảnh mặt trước CNND/CCCD',
IdentityCardBackPhoto: 'Ảnh mặt sau CNND',
IdentityCitizenCardBackPhoto: 'Ảnh mặt sau CNND/CCCD',
IdentityCardFrontPhoto: 'Ảnh mặt trước CMND',
IdentityCitizenCardFrontPhoto: 'Ảnh mặt trước CMND/CCCD',
IdentityCardBackPhoto: 'Ảnh mặt sau CMND',
IdentityCitizenCardBackPhoto: 'Ảnh mặt sau CMND/CCCD',
SignPhoto: 'Ảnh chữ ký',
EnterOTPRequest: 'Vui lòng nhập mã OTP',
OTPInvalid: 'Mã OTP không đúng định dạng',
......
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