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
c5d2122a
Commit
c5d2122a
authored
Jun 14, 2021
by
Giang Tran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit moment
parent
b5fdfba6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
1 deletion
+12
-1
ChooseMethod.js
src/Screens/Action/Deposit/ChooseMethod.js
+8
-1
EnterPasswordSmartOTP.js
src/Screens/SmartOTP/EnterPasswordSmartOTP.js
+2
-0
SmartOTP.js
src/Screens/SmartOTP/SmartOTP.js
+2
-0
No files found.
src/Screens/Action/Deposit/ChooseMethod.js
View file @
c5d2122a
...
...
@@ -11,6 +11,7 @@ import {useNavigation} from '@react-navigation/native';
import
{
saveUserToRedux
}
from
'../../../actions/users'
;
import
{
getDetailUser
}
from
'../../../apis/Functions/users'
;
import
AppText
from
'../../../components/AppText'
;
import
{
showLoading
,
hideLoading
}
from
'../../../actions/loadingAction'
;
const
MethodPayView
=
(
props
)
=>
{
const
[
data
,
setData
]
=
useState
([]);
...
...
@@ -41,9 +42,11 @@ const MethodPayView = (props) => {
};
const
getData
=
async
()
=>
{
props
.
showLoading
();
const
res
=
await
getListMethod
({
platform
:
Platform
.
OS
,
});
props
.
hideLoading
();
if
(
res
.
data
.
code
==
200
&&
res
.
data
.
data
)
{
setData
(
res
.
data
.
data
);
}
else
{
...
...
@@ -90,4 +93,8 @@ const mapStateToProps = (state) => {
user
:
state
.
userReducer
,
};
};
export
default
connect
(
mapStateToProps
,
{
saveUserToRedux
})(
MethodPayView
);
export
default
connect
(
mapStateToProps
,
{
saveUserToRedux
,
showLoading
,
hideLoading
,
})(
MethodPayView
);
src/Screens/SmartOTP/EnterPasswordSmartOTP.js
View file @
c5d2122a
...
...
@@ -53,6 +53,7 @@ const EnterPasswordSmartOTP = (props) => {
clearPIN
();
}
}
else
{
props
.
showLoading
();
const
res
=
await
getOTPApiSmartOTP
({
platform
:
Platform
.
OS
,
otp_by
:
props
.
user
.
email
,
...
...
@@ -62,6 +63,7 @@ const EnterPasswordSmartOTP = (props) => {
?
OTP_TYPE
.
CUSTOMER_REQUEST_DEPOSIT
:
OTP_TYPE
.
REQUEST_WITHDRAW
,
});
props
.
hideLoading
();
if
(
res
.
data
.
code
==
200
)
{
props
.
route
.
params
.
onGoToSmartOTP
(
...
...
src/Screens/SmartOTP/SmartOTP.js
View file @
c5d2122a
...
...
@@ -48,6 +48,7 @@ const SmartOTP = (props) => {
platform
:
Platform
.
OS
,
notes
,
fee
:
0
,
otp
:
encryptRSAString
(
value
),
});
}
else
{
const
{
src
,
receiving_account
,
amount
,
notes
}
=
props
.
route
.
params
;
...
...
@@ -58,6 +59,7 @@ const SmartOTP = (props) => {
platform
:
Platform
.
OS
,
notes
,
fee
:
0
,
otp
:
encryptRSAString
(
value
),
});
}
...
...
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