Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
InvestCustomer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Giang Tran
InvestCustomer
Commits
17989a0f
Commit
17989a0f
authored
May 14, 2021
by
Giang Tran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug upload iamge
parent
6d4f2337
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
Profile.js
src/Screens/AccountVerification/Tab/Profile.js
+3
-2
vn.js
src/helper/i18/locales/vn.js
+4
-4
No files found.
src/Screens/AccountVerification/Tab/Profile.js
View file @
17989a0f
...
@@ -30,7 +30,7 @@ import PickerItem from '../../../components/Picker/PickerItem';
...
@@ -30,7 +30,7 @@ import PickerItem from '../../../components/Picker/PickerItem';
import
{
saveUserToRedux
}
from
'../../../actions/users'
;
import
{
saveUserToRedux
}
from
'../../../actions/users'
;
import
I18n
from
'../../../helper/i18/i18n'
;
import
I18n
from
'../../../helper/i18/i18n'
;
import
{
uploadImage
}
from
'../../../apis/Functions/Upload'
;
import
{
uploadImage
}
from
'../../../apis/Functions/Upload'
;
import
{
TYPE
}
from
'../../../components/DropdownAlert'
;
import
{
showAlert
,
TYPE
}
from
'../../../components/DropdownAlert'
;
const
{
width
}
=
Dimensions
.
get
(
'window'
);
const
{
width
}
=
Dimensions
.
get
(
'window'
);
...
@@ -67,6 +67,7 @@ const Profile = (props) => {
...
@@ -67,6 +67,7 @@ const Profile = (props) => {
data
.
append
(
key
,
body
[
key
]);
data
.
append
(
key
,
body
[
key
]);
});
});
console
.
log
(
'Data'
,
data
);
console
.
log
(
'Data'
,
data
);
return
data
;
return
data
;
};
};
...
@@ -97,7 +98,7 @@ const Profile = (props) => {
...
@@ -97,7 +98,7 @@ const Profile = (props) => {
const
res
=
await
uploadImage
(
const
res
=
await
uploadImage
(
createFormData
(
urlBack
,
{
createFormData
(
urlBack
,
{
scope
:
'VERIFY_USER'
,
scope
:
'VERIFY_USER'
,
field_name
:
'identity_
before
'
,
field_name
:
'identity_
after
'
,
platform
:
Platform
.
OS
,
platform
:
Platform
.
OS
,
}),
}),
);
);
...
...
src/helper/i18/locales/vn.js
View file @
17989a0f
...
@@ -177,10 +177,10 @@ export default {
...
@@ -177,10 +177,10 @@ export default {
IdentityCard
:
'Chứng minh nhân dân'
,
IdentityCard
:
'Chứng minh nhân dân'
,
Passport
:
'Hộ chiếu'
,
Passport
:
'Hộ chiếu'
,
CitizenIdentification
:
'Căn cước công dân'
,
CitizenIdentification
:
'Căn cước công dân'
,
IdentityCardFrontPhoto
:
'Ảnh mặt trước C
N
ND'
,
IdentityCardFrontPhoto
:
'Ảnh mặt trước C
M
ND'
,
IdentityCitizenCardFrontPhoto
:
'Ảnh mặt trước C
N
ND/CCCD'
,
IdentityCitizenCardFrontPhoto
:
'Ảnh mặt trước C
M
ND/CCCD'
,
IdentityCardBackPhoto
:
'Ảnh mặt sau C
N
ND'
,
IdentityCardBackPhoto
:
'Ảnh mặt sau C
M
ND'
,
IdentityCitizenCardBackPhoto
:
'Ảnh mặt sau C
N
ND/CCCD'
,
IdentityCitizenCardBackPhoto
:
'Ảnh mặt sau C
M
ND/CCCD'
,
SignPhoto
:
'Ảnh chữ ký'
,
SignPhoto
:
'Ảnh chữ ký'
,
EnterOTPRequest
:
'Vui lòng nhập mã OTP'
,
EnterOTPRequest
:
'Vui lòng nhập mã OTP'
,
OTPInvalid
:
'Mã OTP không đúng định dạng'
,
OTPInvalid
:
'Mã OTP không đúng định dạng'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment