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
c86cbe97
Commit
c86cbe97
authored
Jan 27, 2022
by
Giang Tran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update code
parent
ab47b434
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
6 deletions
+10
-6
AccountView.js
src/Screens/Account/AccountView.js
+2
-1
Drawer.js
src/components/Header/Drawer.js
+2
-1
HeaderHome.js
src/components/Header/HeaderHome.js
+3
-2
StackNavigation.js
src/routers/StackNavigation.js
+1
-1
TabNavigation.js
src/routers/TabNavigation.js
+2
-1
No files found.
src/Screens/Account/AccountView.js
View file @
c86cbe97
...
...
@@ -13,6 +13,7 @@ import {
MYGROUP
,
AccountVerification
,
PROFILE
,
EKYCSCREEN
,
}
from
'../../routers/ScreenNames'
;
const
AccountView
=
(
props
)
=>
{
...
...
@@ -29,7 +30,7 @@ const AccountView = (props) => {
<
AppText
i18nKey
=
{
'MyProfile'
}
>
<
/AppText
>
<
/TouchableOpacity
>
<
TouchableOpacity
onPress
=
{()
=>
navigate
.
navigate
(
AccountVerification
)}
onPress
=
{()
=>
navigate
.
navigate
(
EKYCSCREEN
)}
style
=
{
styles
.
containerItem
}
>
<
Image
source
=
{
R
.
images
.
iconUserAccuracy
}
style
=
{
styles
.
imgIcon
}
/
>
<
AppText
i18nKey
=
{
'VerifyAccount'
}
>
<
/AppText
>
...
...
src/components/Header/Drawer.js
View file @
c86cbe97
...
...
@@ -38,6 +38,7 @@ import {
CHOOSEMETHOD
,
WALLETWITHDRAW
,
SMARTOTPCONFIG
,
EKYCSCREEN
,
}
from
'../../routers/ScreenNames'
;
import
{
useNavigation
}
from
'@react-navigation/native'
;
import
{
connect
}
from
'react-redux'
;
...
...
@@ -63,7 +64,7 @@ const menus = [
id
:
'12'
,
title
:
'VerifyAccount'
,
icon
:
R
.
images
.
iconUserCheck
,
screen
:
AccountVerification
,
screen
:
EKYCSCREEN
,
},
{
id
:
'15'
,
...
...
src/components/Header/HeaderHome.js
View file @
c86cbe97
...
...
@@ -32,6 +32,7 @@ import {
AccountVerification
,
WALLETWITHDRAW
,
PACKETCQG
,
EKYCSCREEN
,
}
from
'../../routers/ScreenNames'
;
import
PickerAvtart
from
'../../components/Picker/PickerAvatart'
;
import
{
showAlert
,
TYPE
}
from
'../../components/DropdownAlert/index'
;
...
...
@@ -43,7 +44,7 @@ const renderWallet = (status, current_money, current_cqg_money, contract) => {
<
View
style
=
{{
flex
:
1
,
justifyContent
:
'center'
,
alignItems
:
'center'
}}
>
<
TouchableOpacity
disabled
=
{
status
==
2
?
true
:
false
}
onPress
=
{()
=>
navigate
.
navigate
(
AccountVerification
)}
>
onPress
=
{()
=>
navigate
.
navigate
(
EKYCSCREEN
)}
>
<
ImageBackground
imageStyle
=
{{
borderRadius
:
10
}}
style
=
{{
...
...
@@ -138,7 +139,7 @@ const renderWallet = (status, current_money, current_cqg_money, contract) => {
<
View
style
=
{{
flex
:
1
,
justifyContent
:
'center'
,
alignItems
:
'center'
}}
>
<
TouchableOpacity
disabled
=
{
status
==
2
?
true
:
false
}
onPress
=
{()
=>
navigate
.
navigate
(
AccountVerification
)}
>
onPress
=
{()
=>
navigate
.
navigate
(
EKYCSCREEN
)}
>
<
ImageBackground
imageStyle
=
{{
borderRadius
:
10
}}
style
=
{{
...
...
src/routers/StackNavigation.js
View file @
c86cbe97
...
...
@@ -86,7 +86,7 @@ function MyStack(props) {
headerStatusBarHeight
:
0
,
}}
headerMode
=
{
'none'
}
initialRouteName
=
{
ScreenName
.
EKYCSCRE
EN
}
>
initialRouteName
=
{
ScreenName
.
AUTH
EN
}
>
<
Stack
.
Screen
name
=
{
ScreenName
.
CONFIRMCREATEOTP
}
component
=
{
ConfirmCreate
}
...
...
src/routers/TabNavigation.js
View file @
c86cbe97
...
...
@@ -22,6 +22,7 @@ import {
PACKETCQG
,
SETTINGOTP
,
CHANGESMARTOTP
,
EKYCSCREEN
,
}
from
'../routers/ScreenNames'
;
import
I18n
,
{
setLocation
}
from
'../helper/i18/i18n'
;
import
{
changeLanguage
}
from
'../actions/language'
;
...
...
@@ -103,7 +104,7 @@ const TabNavigator = (props) => {
const
showPopUp
=
()
=>
{
if
(
props
.
user
.
status
==
1
)
{
return
confirmAlert
(
I18n
.
t
(
'PopupVerifyAccount'
),
()
=>
{
navigate
.
navigate
(
AccountVerification
);
navigate
.
navigate
(
EKYCSCREEN
);
});
}
else
if
(
!
props
.
user
.
smart_otp_status
)
{
return
confirmAlert
(
...
...
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