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
bf68a2f6
Commit
bf68a2f6
authored
Apr 23, 2021
by
Giang Tran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update code
parent
529ebaf0
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
135 additions
and
132 deletions
+135
-132
AccountView.js
src/Screens/Account/AccountView.js
+6
-6
AccountVerificationView.js
src/Screens/AccountVerification/AccountVerificationView.js
+4
-2
HistoryView.js
src/Screens/Action/History/HistoryView.js
+2
-6
Success.js
src/Screens/Action/Wallet/Tab/Success.js
+1
-3
Watting.js
src/Screens/Action/Wallet/Tab/Watting.js
+1
-3
Wallet.js
src/Screens/Action/Wallet/Wallet.js
+10
-5
Footer.js
src/Screens/Home/Footer.js
+3
-9
LegalDocument.js
src/Screens/LegalDocument/LegalDocument.js
+11
-4
ProfileView.js
src/Screens/Menu/Profile/ProfileView.js
+3
-2
CQG.js
src/Screens/Menu/Profile/Tab/CQG.js
+19
-7
GeneralInfor.js
src/Screens/Menu/Profile/Tab/GeneralInfor.js
+12
-8
NotificaitonView.js
src/Screens/Notification/NotificaitonView.js
+2
-6
Drawer.js
src/components/Header/Drawer.js
+2
-6
HeaderBack.js
src/components/Header/HeaderBack.js
+1
-3
HeaderDrawer.js
src/components/Header/HeaderDrawer.js
+1
-3
HeaderHome.js
src/components/Header/HeaderHome.js
+15
-35
HeaderNewFeed.js
src/components/Header/HeaderNewFeed.js
+1
-3
HeaderSB.js
src/components/Header/HeaderSB.js
+1
-3
HeaderSearch.js
src/components/Header/HeaderSearch.js
+1
-3
InputIcon.js
src/components/Input/InputIcon.js
+1
-1
en.js
src/helper/i18/locales/en.js
+19
-1
vn.js
src/helper/i18/locales/vn.js
+15
-1
PlussModal.js
src/routers/PlussModal.js
+4
-12
No files found.
src/Screens/Account/AccountView.js
View file @
bf68a2f6
...
@@ -26,41 +26,41 @@ const AccountView = (props) => {
...
@@ -26,41 +26,41 @@ const AccountView = (props) => {
onPress
=
{()
=>
navigate
.
navigate
(
PROFILE
)}
onPress
=
{()
=>
navigate
.
navigate
(
PROFILE
)}
style
=
{
styles
.
containerItem
}
>
style
=
{
styles
.
containerItem
}
>
<
Image
source
=
{
R
.
images
.
iconUser
}
style
=
{
styles
.
imgIcon
}
/
>
<
Image
source
=
{
R
.
images
.
iconUser
}
style
=
{
styles
.
imgIcon
}
/
>
<
AppText
i18nKey
=
{
'MyProfile'
}
>
Th
ô
ng
tin
c
á
nh
â
n
<
/AppText
>
<
AppText
i18nKey
=
{
'MyProfile'
}
>
<
/AppText
>
<
/TouchableOpacity
>
<
/TouchableOpacity
>
<
TouchableOpacity
<
TouchableOpacity
onPress
=
{()
=>
navigate
.
navigate
(
AccountVerification
)}
onPress
=
{()
=>
navigate
.
navigate
(
AccountVerification
)}
style
=
{
styles
.
containerItem
}
>
style
=
{
styles
.
containerItem
}
>
<
Image
source
=
{
R
.
images
.
iconUserAccuracy
}
style
=
{
styles
.
imgIcon
}
/
>
<
Image
source
=
{
R
.
images
.
iconUserAccuracy
}
style
=
{
styles
.
imgIcon
}
/
>
<
AppText
i18nKey
=
{
'VerifyAccount'
}
>
X
á
c
th
ự
c
t
à
i
kho
ả
n
<
/AppText
>
<
AppText
i18nKey
=
{
'VerifyAccount'
}
>
<
/AppText
>
<
/TouchableOpacity
>
<
/TouchableOpacity
>
<
TouchableOpacity
<
TouchableOpacity
onPress
=
{()
=>
navigate
.
navigate
(
PAYMENTS
)}
onPress
=
{()
=>
navigate
.
navigate
(
PAYMENTS
)}
style
=
{
styles
.
containerItem
}
>
style
=
{
styles
.
containerItem
}
>
<
Image
source
=
{
R
.
images
.
iconList
}
style
=
{
styles
.
imgIcon
}
/
>
<
Image
source
=
{
R
.
images
.
iconList
}
style
=
{
styles
.
imgIcon
}
/
>
<
AppText
i18nKey
=
{
'Payments'
}
>
C
á
c
kho
ả
n
thanh
to
á
n
<
/AppText
>
<
AppText
i18nKey
=
{
'Payments'
}
>
<
/AppText
>
<
/TouchableOpacity
>
<
/TouchableOpacity
>
<
TouchableOpacity
<
TouchableOpacity
onPress
=
{()
=>
navigate
.
navigate
(
ROSE
)}
onPress
=
{()
=>
navigate
.
navigate
(
ROSE
)}
style
=
{
styles
.
containerItem
}
>
style
=
{
styles
.
containerItem
}
>
<
Image
source
=
{
R
.
images
.
iconRose
}
style
=
{
styles
.
imgIcon
}
/
>
<
Image
source
=
{
R
.
images
.
iconRose
}
style
=
{
styles
.
imgIcon
}
/
>
<
AppText
i18nKey
=
{
'Rose'
}
>
Hoa
h
ồ
ng
<
/AppText
>
<
AppText
i18nKey
=
{
'Rose'
}
>
<
/AppText
>
<
/TouchableOpacity
>
<
/TouchableOpacity
>
<
TouchableOpacity
<
TouchableOpacity
onPress
=
{()
=>
navigate
.
navigate
(
BONUSTEAM
)}
onPress
=
{()
=>
navigate
.
navigate
(
BONUSTEAM
)}
style
=
{
styles
.
containerItem
}
>
style
=
{
styles
.
containerItem
}
>
<
Image
source
=
{
R
.
images
.
iconWallet
}
style
=
{
styles
.
imgIcon
}
/
>
<
Image
source
=
{
R
.
images
.
iconWallet
}
style
=
{
styles
.
imgIcon
}
/
>
<
AppText
i18nKey
=
{
'TeamBonus'
}
>
Ti
ề
n
th
ưở
ng
độ
i
nh
ó
m
<
/AppText
>
<
AppText
i18nKey
=
{
'TeamBonus'
}
>
<
/AppText
>
<
/TouchableOpacity
>
<
/TouchableOpacity
>
<
TouchableOpacity
<
TouchableOpacity
onPress
=
{()
=>
navigate
.
navigate
(
MYGROUP
)}
onPress
=
{()
=>
navigate
.
navigate
(
MYGROUP
)}
style
=
{
styles
.
containerItem
}
>
style
=
{
styles
.
containerItem
}
>
<
Image
source
=
{
R
.
images
.
moneyteam
}
style
=
{
styles
.
imgIcon
}
/
>
<
Image
source
=
{
R
.
images
.
moneyteam
}
style
=
{
styles
.
imgIcon
}
/
>
<
AppText
i18nKey
=
{
'MyPartner'
}
>
Đố
i
t
á
c
c
ủ
a
t
ô
i
<
/AppText
>
<
AppText
i18nKey
=
{
'MyPartner'
}
>
<
/AppText
>
<
/TouchableOpacity
>
<
/TouchableOpacity
>
<
/View
>
<
/View
>
<
/View
>
<
/View
>
...
...
src/Screens/AccountVerification/AccountVerificationView.js
View file @
bf68a2f6
...
@@ -17,6 +17,8 @@ import {getFontXD} from '../../Config/Functions';
...
@@ -17,6 +17,8 @@ import {getFontXD} from '../../Config/Functions';
const
Tab
=
createMaterialTopTabNavigator
();
const
Tab
=
createMaterialTopTabNavigator
();
import
{
connect
}
from
'react-redux'
;
import
{
connect
}
from
'react-redux'
;
import
I18n
from
'../../helper/i18/i18n'
;
const
AccountVerificationView
=
(
props
)
=>
{
const
AccountVerificationView
=
(
props
)
=>
{
return
(
return
(
<
View
style
=
{{
flex
:
1
}}
>
<
View
style
=
{{
flex
:
1
}}
>
...
@@ -32,12 +34,12 @@ const AccountVerificationView = (props) => {
...
@@ -32,12 +34,12 @@ const AccountVerificationView = (props) => {
<
Tab
.
Screen
<
Tab
.
Screen
name
=
"GeneralInfor"
name
=
"GeneralInfor"
component
=
{
props
.
user
.
status
==
1
?
GeneralInfor
:
GeneralView
}
component
=
{
props
.
user
.
status
==
1
?
GeneralInfor
:
GeneralView
}
options
=
{{
tabBarLabel
:
'Thông tin chung'
}}
options
=
{{
tabBarLabel
:
I18n
.
t
(
'GeneralInformation'
)
}}
/
>
/
>
<
Tab
.
Screen
<
Tab
.
Screen
name
=
"Profile"
name
=
"Profile"
component
=
{
props
.
user
.
status
==
1
?
Profile
:
ProfileView
}
component
=
{
props
.
user
.
status
==
1
?
Profile
:
ProfileView
}
options
=
{{
tabBarLabel
:
'Hồ sơ'
}}
options
=
{{
tabBarLabel
:
I18n
.
t
(
'Profile'
)
}}
/
>
/
>
<
/Tab.Navigator
>
<
/Tab.Navigator
>
<
/View
>
<
/View
>
...
...
src/Screens/Action/History/HistoryView.js
View file @
bf68a2f6
...
@@ -56,9 +56,7 @@ const HistoryView = (props) => {
...
@@ -56,9 +56,7 @@ const HistoryView = (props) => {
style
=
{[
style
=
{[
styles
.
txtFillter
,
styles
.
txtFillter
,
selected
==
e
.
value
?
{
color
:
'#1473E6'
}
:
{},
selected
==
e
.
value
?
{
color
:
'#1473E6'
}
:
{},
]}
>
]}
><
/AppText
>
{
e
.
name
}
<
/AppText
>
<
/TouchableOpacity
>
<
/TouchableOpacity
>
))}
))}
<
/ScrollView
>
<
/ScrollView
>
...
@@ -72,9 +70,7 @@ const HistoryView = (props) => {
...
@@ -72,9 +70,7 @@ const HistoryView = (props) => {
style
=
{{
style
=
{{
fontSize
:
18
,
fontSize
:
18
,
fontWeight
:
'bold'
,
fontWeight
:
'bold'
,
}}
>
}}
><
/AppText
>
Kh
ô
ng
c
ó
d
ữ
li
ệ
u
!
<
/AppText
>
<
/View
>
<
/View
>
)
:
(
)
:
(
<
FlatList
<
FlatList
...
...
src/Screens/Action/Wallet/Tab/Success.js
View file @
bf68a2f6
...
@@ -75,9 +75,7 @@ const Success = (props) => {
...
@@ -75,9 +75,7 @@ const Success = (props) => {
style
=
{{
style
=
{{
fontSize
:
18
,
fontSize
:
18
,
fontWeight
:
'bold'
,
fontWeight
:
'bold'
,
}}
>
}}
><
/AppText
>
Kh
ô
ng
c
ó
d
ữ
li
ệ
u
!
<
/AppText
>
<
/View
>
<
/View
>
)
:
(
)
:
(
<
FlatList
<
FlatList
...
...
src/Screens/Action/Wallet/Tab/Watting.js
View file @
bf68a2f6
...
@@ -80,9 +80,7 @@ const Watting = (props) => {
...
@@ -80,9 +80,7 @@ const Watting = (props) => {
style
=
{{
style
=
{{
fontSize
:
18
,
fontSize
:
18
,
fontWeight
:
'bold'
,
fontWeight
:
'bold'
,
}}
>
}}
><
/AppText
>
Kh
ô
ng
c
ó
d
ữ
li
ệ
u
!
<
/AppText
>
<
/View
>
<
/View
>
)
:
(
)
:
(
<
FlatList
<
FlatList
...
...
src/Screens/Action/Wallet/Wallet.js
View file @
bf68a2f6
...
@@ -5,7 +5,8 @@ import Success from './Tab/Success';
...
@@ -5,7 +5,8 @@ import Success from './Tab/Success';
import
Watting
from
'./Tab/Watting'
;
import
Watting
from
'./Tab/Watting'
;
import
{
getFontXD
}
from
'../../../Config/Functions'
;
import
{
getFontXD
}
from
'../../../Config/Functions'
;
import
{
WALLETDEPOSIT
,
WALLETWITHDRAW
}
from
'../../../routers/ScreenNames'
;
import
{
WALLETDEPOSIT
,
WALLETWITHDRAW
}
from
'../../../routers/ScreenNames'
;
import
I18n
from
'../../../helper/i18/i18n'
;
import
AppText
from
'../../../components/AppText'
;
import
{
createMaterialTopTabNavigator
}
from
'@react-navigation/material-top-tabs'
;
import
{
createMaterialTopTabNavigator
}
from
'@react-navigation/material-top-tabs'
;
import
R
from
'../../../assets/R'
;
import
R
from
'../../../assets/R'
;
const
Tab
=
createMaterialTopTabNavigator
();
const
Tab
=
createMaterialTopTabNavigator
();
...
@@ -28,12 +29,12 @@ const Wallet = (props) => {
...
@@ -28,12 +29,12 @@ const Wallet = (props) => {
<
Tab
.
Screen
<
Tab
.
Screen
name
=
"Tab1"
name
=
"Tab1"
component
=
{
Watting
}
component
=
{
Watting
}
options
=
{{
tabBarLabel
:
'Đang chờ'
}}
options
=
{{
tabBarLabel
:
I18n
.
t
(
'Waiting'
)
}}
/
>
/
>
<
Tab
.
Screen
<
Tab
.
Screen
name
=
"Tab2"
name
=
"Tab2"
component
=
{
Success
}
component
=
{
Success
}
options
=
{{
tabBarLabel
:
'Thành công'
}}
options
=
{{
tabBarLabel
:
I18n
.
t
(
'Success'
)
}}
/
>
/
>
<
/Tab.Navigator
>
<
/Tab.Navigator
>
<
/View
>
<
/View
>
...
@@ -41,12 +42,16 @@ const Wallet = (props) => {
...
@@ -41,12 +42,16 @@ const Wallet = (props) => {
<
TouchableOpacity
<
TouchableOpacity
onPress
=
{()
=>
navigate
.
navigate
(
WALLETDEPOSIT
)}
onPress
=
{()
=>
navigate
.
navigate
(
WALLETDEPOSIT
)}
style
=
{
styles
.
btnLeft
}
>
style
=
{
styles
.
btnLeft
}
>
<
Text
style
=
{
styles
.
txtTitle
}
>
N
ạ
p
ti
ề
n
<
/Text
>
<
AppText
i18nKey
=
{
'Deposit'
}
style
=
{
styles
.
txtTitle
}
>
N
ạ
p
ti
ề
n
<
/AppText
>
<
/TouchableOpacity
>
<
/TouchableOpacity
>
<
TouchableOpacity
<
TouchableOpacity
onPress
=
{()
=>
navigate
.
navigate
(
WALLETWITHDRAW
)}
onPress
=
{()
=>
navigate
.
navigate
(
WALLETWITHDRAW
)}
style
=
{
styles
.
btnRight
}
>
style
=
{
styles
.
btnRight
}
>
<
Text
style
=
{
styles
.
txtTitle
}
>
R
ú
t
ti
ề
n
<
/Text
>
<
AppText
i18nKey
=
{
'Withdraw'
}
style
=
{
styles
.
txtTitle
}
>
R
ú
t
ti
ề
n
<
/AppText
>
<
/TouchableOpacity
>
<
/TouchableOpacity
>
<
/View
>
<
/View
>
);
);
...
...
src/Screens/Home/Footer.js
View file @
bf68a2f6
...
@@ -12,9 +12,7 @@ const Footer = (props) => {
...
@@ -12,9 +12,7 @@ const Footer = (props) => {
<
Image
source
=
{
R
.
images
.
moneyteam
}
style
=
{
styles
.
imgIcon
}
/
>
<
Image
source
=
{
R
.
images
.
moneyteam
}
style
=
{
styles
.
imgIcon
}
/
>
<
/View
>
<
/View
>
<
View
style
=
{{
flex
:
1
,
paddingHorizontal
:
15
}}
>
<
View
style
=
{{
flex
:
1
,
paddingHorizontal
:
15
}}
>
<
AppText
i18nKey
=
{
'RevenueTeam'
}
style
=
{
styles
.
txt
}
>
<
AppText
i18nKey
=
{
'RevenueTeam'
}
style
=
{
styles
.
txt
}
><
/AppText
>
Doanh
thu
c
ủ
a
độ
i
<
/AppText
>
<
Text
style
=
{
styles
.
txtMoney
}
>
0
Đ
<
/Text
>
<
Text
style
=
{
styles
.
txtMoney
}
>
0
Đ
<
/Text
>
<
/View
>
<
/View
>
<
View
style
=
{{
justifyContent
:
'center'
,
alignItems
:
'center'
}}
>
<
View
style
=
{{
justifyContent
:
'center'
,
alignItems
:
'center'
}}
>
...
@@ -27,9 +25,7 @@ const Footer = (props) => {
...
@@ -27,9 +25,7 @@ const Footer = (props) => {
<
Image
source
=
{
R
.
images
.
moneysupport
}
style
=
{
styles
.
imgIcon
}
/
>
<
Image
source
=
{
R
.
images
.
moneysupport
}
style
=
{
styles
.
imgIcon
}
/
>
<
/View
>
<
/View
>
<
View
style
=
{{
flex
:
1
,
paddingHorizontal
:
15
}}
>
<
View
style
=
{{
flex
:
1
,
paddingHorizontal
:
15
}}
>
<
AppText
i18nKey
=
{
'RevenueDonors'
}
style
=
{
styles
.
txt
}
>
<
AppText
i18nKey
=
{
'RevenueDonors'
}
style
=
{
styles
.
txt
}
><
/AppText
>
Doanh
thu
nh
à
t
à
i
tr
ợ
<
/AppText
>
<
Text
style
=
{
styles
.
txtMoney
}
>
0
Đ
<
/Text
>
<
Text
style
=
{
styles
.
txtMoney
}
>
0
Đ
<
/Text
>
<
/View
>
<
/View
>
<
View
style
=
{{
justifyContent
:
'center'
,
alignItems
:
'center'
}}
>
<
View
style
=
{{
justifyContent
:
'center'
,
alignItems
:
'center'
}}
>
...
@@ -42,9 +38,7 @@ const Footer = (props) => {
...
@@ -42,9 +38,7 @@ const Footer = (props) => {
<
Image
source
=
{
R
.
images
.
moneyinvest
}
style
=
{
styles
.
imgIcon
}
/
>
<
Image
source
=
{
R
.
images
.
moneyinvest
}
style
=
{
styles
.
imgIcon
}
/
>
<
/View
>
<
/View
>
<
View
style
=
{{
flex
:
1
,
paddingHorizontal
:
15
}}
>
<
View
style
=
{{
flex
:
1
,
paddingHorizontal
:
15
}}
>
<
AppText
i18nKey
=
{
'Invset'
}
style
=
{
styles
.
txt
}
>
<
AppText
i18nKey
=
{
'Invset'
}
style
=
{
styles
.
txt
}
><
/AppText
>
Đầ
u
t
ư
<
/AppText
>
<
Text
style
=
{
styles
.
txtMoney
}
>
0
Đ
<
/Text
>
<
Text
style
=
{
styles
.
txtMoney
}
>
0
Đ
<
/Text
>
<
/View
>
<
/View
>
<
View
style
=
{{
justifyContent
:
'center'
,
alignItems
:
'center'
}}
>
<
View
style
=
{{
justifyContent
:
'center'
,
alignItems
:
'center'
}}
>
...
...
src/Screens/LegalDocument/LegalDocument.js
View file @
bf68a2f6
...
@@ -9,27 +9,34 @@ import {
...
@@ -9,27 +9,34 @@ import {
LEGALCUSTOMER
,
LEGALCUSTOMER
,
LEGALBUSINESS
,
LEGALBUSINESS
,
}
from
'../../routers/ScreenNames'
;
}
from
'../../routers/ScreenNames'
;
import
AppText
from
'../../components/AppText'
;
const
LegalDocument
=
(
props
)
=>
{
const
LegalDocument
=
(
props
)
=>
{
const
navigate
=
useNavigation
();
const
navigate
=
useNavigation
();
return
(
return
(
<
View
style
=
{{
flex
:
1
}}
>
<
View
style
=
{{
flex
:
1
}}
>
<
HeaderBack
title
=
{
'
Giấy tờ pháp lý
'
}
/
>
<
HeaderBack
title
=
{
'
LegalDocument
'
}
/
>
<
View
style
=
{
styles
.
container
}
>
<
View
style
=
{
styles
.
container
}
>
<
TouchableOpacity
<
TouchableOpacity
onPress
=
{()
=>
navigate
.
navigate
(
LEGALCUSTOMER
)}
onPress
=
{()
=>
navigate
.
navigate
(
LEGALCUSTOMER
)}
style
=
{
styles
.
containerItem
}
>
style
=
{
styles
.
containerItem
}
>
<
Text
style
=
{
styles
.
txtTitle
}
>
Tho
ả
thu
ậ
n
kh
á
ch
h
à
ng
<
/Text
>
<
AppText
i18nKey
=
{
'CustomerAgreement'
}
style
=
{
styles
.
txtTitle
}
>
{
' '
}
<
/AppText
>
<
/TouchableOpacity
>
<
/TouchableOpacity
>
<
TouchableOpacity
<
TouchableOpacity
onPress
=
{()
=>
navigate
.
navigate
(
LEGALBUSINESS
)}
onPress
=
{()
=>
navigate
.
navigate
(
LEGALBUSINESS
)}
style
=
{
styles
.
containerItem
}
>
style
=
{
styles
.
containerItem
}
>
<
Text
style
=
{
styles
.
txtTitle
}
>
Tho
ả
thu
ậ
n
kinh
doanh
chung
<
/Text
>
<
AppText
i18nKey
=
{
'BusinessAgreement'
}
style
=
{
styles
.
txtTitle
}
>
{
' '
}
<
/AppText
>
<
/TouchableOpacity
>
<
/TouchableOpacity
>
<
TouchableOpacity
<
TouchableOpacity
onPress
=
{()
=>
navigate
.
navigate
(
LEGALPARTNER
)}
onPress
=
{()
=>
navigate
.
navigate
(
LEGALPARTNER
)}
style
=
{
styles
.
containerItem
}
>
style
=
{
styles
.
containerItem
}
>
<
Text
style
=
{
styles
.
txtTitle
}
>
Tho
ả
thu
ậ
n
quan
h
ệ
đố
i
t
á
c
<
/Text
>
<
AppText
i18nKey
=
{
'PartnershipAgreement'
}
style
=
{
styles
.
txtTitle
}
>
{
' '
}
<
/AppText
>
<
/TouchableOpacity
>
<
/TouchableOpacity
>
<
/View
>
<
/View
>
<
/View
>
<
/View
>
...
...
src/Screens/Menu/Profile/ProfileView.js
View file @
bf68a2f6
...
@@ -12,6 +12,7 @@ import CQG from './Tab/CQG';
...
@@ -12,6 +12,7 @@ import CQG from './Tab/CQG';
import
{
createMaterialTopTabNavigator
}
from
'@react-navigation/material-top-tabs'
;
import
{
createMaterialTopTabNavigator
}
from
'@react-navigation/material-top-tabs'
;
import
{
getFontXD
}
from
'../../../Config/Functions'
;
import
{
getFontXD
}
from
'../../../Config/Functions'
;
const
Tab
=
createMaterialTopTabNavigator
();
const
Tab
=
createMaterialTopTabNavigator
();
import
I18n
from
'../../../helper/i18/i18n'
;
const
ProfileView
=
(
props
)
=>
{
const
ProfileView
=
(
props
)
=>
{
return
(
return
(
...
@@ -29,12 +30,12 @@ const ProfileView = (props) => {
...
@@ -29,12 +30,12 @@ const ProfileView = (props) => {
<
Tab
.
Screen
<
Tab
.
Screen
name
=
"GeneralInfor"
name
=
"GeneralInfor"
component
=
{
GeneralInfor
}
component
=
{
GeneralInfor
}
options
=
{{
tabBarLabel
:
'Thông tin chung'
}}
options
=
{{
tabBarLabel
:
I18n
.
t
(
'GeneralInformation'
)
}}
/
>
/
>
<
Tab
.
Screen
<
Tab
.
Screen
name
=
"CQG"
name
=
"CQG"
component
=
{
CQG
}
component
=
{
CQG
}
options
=
{{
tabBarLabel
:
'Tài khoản CQG'
}}
options
=
{{
tabBarLabel
:
I18n
.
t
(
'AccountCQG'
)
}}
/
>
/
>
<
/Tab.Navigator
>
<
/Tab.Navigator
>
<
/View
>
<
/View
>
...
...
src/Screens/Menu/Profile/Tab/CQG.js
View file @
bf68a2f6
...
@@ -2,21 +2,28 @@ import React from 'react';
...
@@ -2,21 +2,28 @@ import React from 'react';
import
{
View
,
Text
,
TouchableOpacity
,
Image
,
StyleSheet
}
from
'react-native'
;
import
{
View
,
Text
,
TouchableOpacity
,
Image
,
StyleSheet
}
from
'react-native'
;
import
R
from
'../../../../assets/R'
;
import
R
from
'../../../../assets/R'
;
import
{
getFontXD
}
from
'../../../../Config/Functions'
;
import
{
getFontXD
}
from
'../../../../Config/Functions'
;
import
{
connect
}
from
'react-redux'
;
import
AppText
from
'../../../../components/AppText'
;
import
I18n
from
'../../../../helper/i18/i18n'
;
const
Profile
=
(
props
)
=>
{
const
Profile
=
(
props
)
=>
{
return
(
return
(
<
View
style
=
{
styles
.
container
}
>
<
View
style
=
{
styles
.
container
}
>
<
View
style
=
{
styles
.
item
}
>
<
View
style
=
{
styles
.
item
}
>
<
Text
style
=
{
styles
.
txtTitle
}
>
M
ã
h
ợ
p
đồ
ng
<
/
Text
>
<
AppText
i18nKey
=
{
'ContactCode'
}
style
=
{
styles
.
txtTitle
}
><
/App
Text
>
<
Text
style
=
{
styles
.
txtBig
}
>
Network
&
internet
<
/Text
>
<
Text
style
=
{
styles
.
txtBig
}
>
{
props
.
user
.
cqg_id
}
<
/Text
>
<
/View
>
<
/View
>
<
View
style
=
{
styles
.
item
}
>
<
View
style
=
{
styles
.
item
}
>
<
Text
style
=
{
styles
.
txtTitle
}
>
T
ê
n
t
à
i
kho
ả
n
giao
d
ị
ch
<
/Text
>
<
AppText
<
Text
style
=
{
styles
.
txtBig
}
>
Network
&
internet
<
/Text
>
i18nKey
=
{
'TraddingAccountName'
}
style
=
{
styles
.
txtTitle
}
><
/AppText
>
<
Text
style
=
{
styles
.
txtBig
}
>
{
props
.
user
.
cqg_name
}
<
/Text
>
<
/View
>
<
/View
>
<
View
style
=
{
styles
.
item
}
>
<
View
style
=
{
styles
.
item
}
>
<
Text
style
=
{
styles
.
txtTitle
}
>
S
ố
t
à
i
kho
ả
n
giao
d
ị
ch
<
/Text
>
<
AppText
<
Text
style
=
{
styles
.
txtBig
}
>
0202020202
<
/Text
>
i18nKey
=
{
'TraddingAccountNumber'
}
style
=
{
styles
.
txtTitle
}
><
/AppText
>
<
Text
style
=
{
styles
.
txtBig
}
>
{
props
.
user
.
account
}
<
/Text
>
<
/View
>
<
/View
>
<
/View
>
<
/View
>
);
);
...
@@ -46,4 +53,9 @@ const styles = StyleSheet.create({
...
@@ -46,4 +53,9 @@ const styles = StyleSheet.create({
},
},
});
});
export
default
Profile
;
const
mapStateToProps
=
(
state
)
=>
{
return
{
user
:
state
.
userReducer
,
};
};
export
default
connect
(
mapStateToProps
,
{})(
Profile
);
src/Screens/Menu/Profile/Tab/GeneralInfor.js
View file @
bf68a2f6
...
@@ -17,7 +17,8 @@ import TextMulti from '../../../../components/Input/TextMulti';
...
@@ -17,7 +17,8 @@ import TextMulti from '../../../../components/Input/TextMulti';
import
{
connect
}
from
'react-redux'
;
import
{
connect
}
from
'react-redux'
;
import
{
showLoading
,
hideLoading
}
from
'../../../../actions/loadingAction'
;
import
{
showLoading
,
hideLoading
}
from
'../../../../actions/loadingAction'
;
import
{
saveUserToRedux
}
from
'../../../../actions/users'
;
import
{
saveUserToRedux
}
from
'../../../../actions/users'
;
import
AppText
from
'../../../../components/AppText'
;
import
I18n
from
'../../../../helper/i18/i18n'
;
import
TextField
from
'../../../../components/Input/TextField'
;
import
TextField
from
'../../../../components/Input/TextField'
;
import
{
import
{
getFontXD
,
getFontXD
,
...
@@ -64,6 +65,7 @@ const GeneralInfor = (props) => {
...
@@ -64,6 +65,7 @@ const GeneralInfor = (props) => {
if
(
props
.
user
.
gender
==
1
)
return
'Nữ'
;
if
(
props
.
user
.
gender
==
1
)
return
'Nữ'
;
return
'Nam'
;
return
'Nam'
;
};
};
return
(
return
(
<
KeyboardAvoidingView
<
KeyboardAvoidingView
behavior
=
{
Platform
.
Os
===
'ios'
?
'padding'
:
'height'
}
behavior
=
{
Platform
.
Os
===
'ios'
?
'padding'
:
'height'
}
...
@@ -74,7 +76,7 @@ const GeneralInfor = (props) => {
...
@@ -74,7 +76,7 @@ const GeneralInfor = (props) => {
<
View
style
=
{
styles
.
container
}
>
<
View
style
=
{
styles
.
container
}
>
<
View
style
=
{
styles
.
wrapItem
}
>
<
View
style
=
{
styles
.
wrapItem
}
>
<
View
style
=
{
styles
.
wrapLeft
}
>
<
View
style
=
{
styles
.
wrapLeft
}
>
<
Text
style
=
{
styles
.
txtTitle
}
>
H
ọ
v
à
t
ê
n
<
/
Text
>
<
AppText
i18nKey
=
{
'Fullname'
}
style
=
{
styles
.
txtTitle
}
><
/App
Text
>
<
/View
>
<
/View
>
<
View
style
=
{
styles
.
wrapRight
}
>
<
View
style
=
{
styles
.
wrapRight
}
>
<
Text
style
=
{
styles
.
txtTitle
}
>
{
props
.
user
.
fullname
}
<
/Text
>
<
Text
style
=
{
styles
.
txtTitle
}
>
{
props
.
user
.
fullname
}
<
/Text
>
...
@@ -90,7 +92,7 @@ const GeneralInfor = (props) => {
...
@@ -90,7 +92,7 @@ const GeneralInfor = (props) => {
<
/View
>
<
/View
>
<
View
style
=
{
styles
.
wrapItem
}
>
<
View
style
=
{
styles
.
wrapItem
}
>
<
View
style
=
{
styles
.
wrapLeft
}
>
<
View
style
=
{
styles
.
wrapLeft
}
>
<
Text
style
=
{
styles
.
txtTitle
}
>
Ng
à
y
sinh
<
/
Text
>
<
AppText
i18nKey
=
{
'Birth'
}
style
=
{
styles
.
txtTitle
}
><
/App
Text
>
<
/View
>
<
/View
>
<
View
style
=
{
styles
.
wrapRight
}
>
<
View
style
=
{
styles
.
wrapRight
}
>
<
Text
style
=
{
styles
.
txtTitle
}
>
{
props
.
user
.
birthday
}
<
/Text
>
<
Text
style
=
{
styles
.
txtTitle
}
>
{
props
.
user
.
birthday
}
<
/Text
>
...
@@ -98,7 +100,7 @@ const GeneralInfor = (props) => {
...
@@ -98,7 +100,7 @@ const GeneralInfor = (props) => {
<
/View
>
<
/View
>
<
View
style
=
{
styles
.
wrapItem
}
>
<
View
style
=
{
styles
.
wrapItem
}
>
<
View
style
=
{
styles
.
wrapLeft
}
>
<
View
style
=
{
styles
.
wrapLeft
}
>
<
Text
style
=
{
styles
.
txtTitle
}
>
Gi
ớ
i
t
í
nh
<
/
Text
>
<
AppText
i18nKey
=
{
'Male'
}
style
=
{
styles
.
txtTitle
}
><
/App
Text
>
<
/View
>
<
/View
>
<
View
style
=
{
styles
.
wrapRight
}
>
<
View
style
=
{
styles
.
wrapRight
}
>
<
Text
style
=
{
styles
.
txtTitle
}
>
{
renderMale
()}
<
/Text
>
<
Text
style
=
{
styles
.
txtTitle
}
>
{
renderMale
()}
<
/Text
>
...
@@ -106,7 +108,7 @@ const GeneralInfor = (props) => {
...
@@ -106,7 +108,7 @@ const GeneralInfor = (props) => {
<
/View
>
<
/View
>
<
View
style
=
{
styles
.
wrapItem
}
>
<
View
style
=
{
styles
.
wrapItem
}
>
<
View
style
=
{
styles
.
wrapLeft
}
>
<
View
style
=
{
styles
.
wrapLeft
}
>
<
Text
style
=
{
styles
.
txtTitle
}
>
Tr
ạ
ng
th
á
i
<
/
Text
>
<
AppText
i18nKey
=
{
'Status'
}
style
=
{
styles
.
txtTitle
}
><
/App
Text
>
<
/View
>
<
/View
>
<
View
style
=
{
styles
.
wrapRight
}
>
<
View
style
=
{
styles
.
wrapRight
}
>
<
Text
style
=
{
styles
.
txtTitle
}
>
<
Text
style
=
{
styles
.
txtTitle
}
>
...
@@ -117,7 +119,7 @@ const GeneralInfor = (props) => {
...
@@ -117,7 +119,7 @@ const GeneralInfor = (props) => {
<
/View
>
<
/View
>
<
TextField
<
TextField
title
=
{
'Điện thoại'
}
title
=
{
I18n
.
t
(
'Phone'
)
}
value
=
{
phone
}
value
=
{
phone
}
onChangeText
=
{(
val
)
=>
setPhone
(
val
)}
onChangeText
=
{(
val
)
=>
setPhone
(
val
)}
/
>
/
>
...
@@ -125,13 +127,15 @@ const GeneralInfor = (props) => {
...
@@ -125,13 +127,15 @@ const GeneralInfor = (props) => {
<
TextMulti
<
TextMulti
onChangeText
=
{(
val
)
=>
setAddress
(
val
)}
onChangeText
=
{(
val
)
=>
setAddress
(
val
)}
value
=
{
address
}
value
=
{
address
}
title
=
{
'Địa chỉ'
}
title
=
{
I18n
.
t
(
'Address'
)
}
/
>
/
>
<
View
style
=
{{
height
:
40
}}
/
>
<
View
style
=
{{
height
:
40
}}
/
>
<
View
style
=
{{
justifyContent
:
'center'
,
alignItems
:
'center'
}}
>
<
View
style
=
{{
justifyContent
:
'center'
,
alignItems
:
'center'
}}
>
<
TouchableOpacity
onPress
=
{
onClick
}
style
=
{
styles
.
btn
}
>
<
TouchableOpacity
onPress
=
{
onClick
}
style
=
{
styles
.
btn
}
>
<
Text
style
=
{
styles
.
txtBtn
}
>
C
ậ
p
nh
ậ
t
<
/Text
>
<
AppText
i18nKey
=
{
'Update'
}
style
=
{
styles
.
txtBtn
}
>
C
ậ
p
nh
ậ
t
<
/AppText
>
<
/TouchableOpacity
>
<
/TouchableOpacity
>
<
/View
>
<
/View
>
<
/View
>
<
/View
>
...
...
src/Screens/Notification/NotificaitonView.js
View file @
bf68a2f6
...
@@ -58,9 +58,7 @@ const NotificaitonView = (props) => {
...
@@ -58,9 +58,7 @@ const NotificaitonView = (props) => {
style
=
{[
style
=
{[
styles
.
txtFillter
,
styles
.
txtFillter
,
fillter
==
e
.
value
?
{
color
:
'#1473E6'
}
:
{},
fillter
==
e
.
value
?
{
color
:
'#1473E6'
}
:
{},
]}
>
]}
><
/AppText
>
{
e
.
name
}
<
/AppText
>
<
/TouchableOpacity
>
<
/TouchableOpacity
>
))}
))}
<
/ScrollView
>
<
/ScrollView
>
...
@@ -73,9 +71,7 @@ const NotificaitonView = (props) => {
...
@@ -73,9 +71,7 @@ const NotificaitonView = (props) => {
style
=
{{
style
=
{{
fontSize
:
18
,
fontSize
:
18
,
fontWeight
:
'bold'
,
fontWeight
:
'bold'
,
}}
>
}}
><
/AppText
>
Kh
ô
ng
c
ó
d
ữ
li
ệ
u
!
<
/AppText
>
<
/View
>
<
/View
>
)
:
(
)
:
(
<
FlatList
<
FlatList
...
...
src/components/Header/Drawer.js
View file @
bf68a2f6
...
@@ -98,9 +98,7 @@ const Drawer = (props) => {
...
@@ -98,9 +98,7 @@ const Drawer = (props) => {
key
=
{
e
.
id
}
key
=
{
e
.
id
}
style
=
{
styles
.
containerItem
}
>
style
=
{
styles
.
containerItem
}
>
<
Image
source
=
{
e
.
icon
}
style
=
{
styles
.
imgIcon
}
/
>
<
Image
source
=
{
e
.
icon
}
style
=
{
styles
.
imgIcon
}
/
>
<
AppText
i18nKey
=
{
e
.
title
}
style
=
{
styles
.
txtTitle
}
>
<
AppText
i18nKey
=
{
e
.
title
}
style
=
{
styles
.
txtTitle
}
><
/AppText
>
{
e
.
title
}
<
/AppText
>
<
/TouchableOpacity
>
<
/TouchableOpacity
>
))}
))}
<
/View
>
<
/View
>
...
@@ -116,9 +114,7 @@ const Drawer = (props) => {
...
@@ -116,9 +114,7 @@ const Drawer = (props) => {
}}
}}
style
=
{
styles
.
footer
}
>
style
=
{
styles
.
footer
}
>
<
Icon
name
=
{
'logout'
}
size
=
{
25
}
color
=
{
'#F81515'
}
/
>
<
Icon
name
=
{
'logout'
}
size
=
{
25
}
color
=
{
'#F81515'
}
/
>
<
AppText
i18nKey
=
{
'Logout'
}
Logout
style
=
{
styles
.
txtTitle
}
>
<
AppText
i18nKey
=
{
'Logout'
}
Logout
style
=
{
styles
.
txtTitle
}
><
/AppText
>
Đă
ng
xu
ấ
t
<
/AppText
>
<
/TouchableOpacity
>
<
/TouchableOpacity
>
<
/View
>
<
/View
>
);
);
...
...
src/components/Header/HeaderBack.js
View file @
bf68a2f6
...
@@ -37,9 +37,7 @@ const HeaderHome = (props) => {
...
@@ -37,9 +37,7 @@ const HeaderHome = (props) => {
onPress
=
{()
=>
navigate
.
goBack
()}
>
onPress
=
{()
=>
navigate
.
goBack
()}
>
<
Image
source
=
{
R
.
images
.
iconBack
}
style
=
{
styles
.
imgIcon
}
/
>
<
Image
source
=
{
R
.
images
.
iconBack
}
style
=
{
styles
.
imgIcon
}
/
>
<
/TouchableOpacity
>
<
/TouchableOpacity
>
<
AppText
i18nKey
=
{
title
}
style
=
{
styles
.
txtTitle
}
>
<
AppText
i18nKey
=
{
title
}
style
=
{
styles
.
txtTitle
}
><
/AppText
>
{
title
}
<
/AppText
>
<
View
style
=
{{
width
:
35
,
height
:
30
}}
/
>
<
View
style
=
{{
width
:
35
,
height
:
30
}}
/
>
<
/View
>
<
/View
>
<
/ImageBackground
>
<
/ImageBackground
>
...
...
src/components/Header/HeaderDrawer.js
View file @
bf68a2f6
...
@@ -43,9 +43,7 @@ const HeaderDrawer = (props) => {
...
@@ -43,9 +43,7 @@ const HeaderDrawer = (props) => {
<
Image
source
=
{
R
.
images
.
iconMenu
}
style
=
{
styles
.
imgIcon
}
/
>
<
Image
source
=
{
R
.
images
.
iconMenu
}
style
=
{
styles
.
imgIcon
}
/
>
<
/TouchableOpacity
>
<
/TouchableOpacity
>
<
AppText
i18nKey
=
{
title
}
style
=
{
styles
.
txtTitle
}
>
<
AppText
i18nKey
=
{
title
}
style
=
{
styles
.
txtTitle
}
><
/AppText
>
{
title
}
<
/AppText
>
<
View
style
=
{{
width
:
35
,
height
:
30
}}
/
>
<
View
style
=
{{
width
:
35
,
height
:
30
}}
/
>
<
/View
>
<
/View
>
<
Modal
<
Modal
...
...
src/components/Header/HeaderHome.js
View file @
bf68a2f6
...
@@ -40,9 +40,7 @@ const renderWallet = (status, current_money, current_cqg_money, contract) => {
...
@@ -40,9 +40,7 @@ const renderWallet = (status, current_money, current_cqg_money, contract) => {
return
(
return
(
<
View
style
=
{{
flex
:
1
,
flexDirection
:
'row'
}}
>
<
View
style
=
{{
flex
:
1
,
flexDirection
:
'row'
}}
>
<
View
style
=
{
styles
.
containerWallet
}
>
<
View
style
=
{
styles
.
containerWallet
}
>
<
AppText
i18nKey
=
{
'AccountWallet'
}
style
=
{
styles
.
txtWallet
}
>
<
AppText
i18nKey
=
{
'AccountWallet'
}
style
=
{
styles
.
txtWallet
}
><
/AppText
>
T
à
i
kho
ả
n
v
í
<
/AppText
>
<
View
style
=
{{
flexDirection
:
'row'
}}
>
<
View
style
=
{{
flexDirection
:
'row'
}}
>
<
Text
style
=
{
styles
.
txtMoney
}
>
<
Text
style
=
{
styles
.
txtMoney
}
>
{
current_money
==
0
?
0
:
toPriceVnd
(
current_money
)}
{
current_money
==
0
?
0
:
toPriceVnd
(
current_money
)}
...
@@ -52,9 +50,7 @@ const renderWallet = (status, current_money, current_cqg_money, contract) => {
...
@@ -52,9 +50,7 @@ const renderWallet = (status, current_money, current_cqg_money, contract) => {
<
/View
>
<
/View
>
<
View
style
=
{{
width
:
1
,
backgroundColor
:
'#EDEDF1'
,
height
:
'100%'
}}
/
>
<
View
style
=
{{
width
:
1
,
backgroundColor
:
'#EDEDF1'
,
height
:
'100%'
}}
/
>
<
View
style
=
{
styles
.
containerWallet
}
>
<
View
style
=
{
styles
.
containerWallet
}
>
<
AppText
i18nKey
=
{
'AccountCQG'
}
style
=
{
styles
.
txtWallet
}
>
<
AppText
i18nKey
=
{
'AccountCQG'
}
style
=
{
styles
.
txtWallet
}
><
/AppText
>
T
à
i
kho
ả
n
CQG
<
/AppText
>
<
View
style
=
{{
flexDirection
:
'row'
}}
>
<
View
style
=
{{
flexDirection
:
'row'
}}
>
<
Text
style
=
{
styles
.
txtMoney
}
>
<
Text
style
=
{
styles
.
txtMoney
}
>
{
current_cqg_money
==
0
?
0
:
toPriceVnd
(
current_cqg_money
)}
{
current_cqg_money
==
0
?
0
:
toPriceVnd
(
current_cqg_money
)}
...
@@ -68,9 +64,7 @@ const renderWallet = (status, current_money, current_cqg_money, contract) => {
...
@@ -68,9 +64,7 @@ const renderWallet = (status, current_money, current_cqg_money, contract) => {
return
(
return
(
<
View
style
=
{{
flex
:
1
,
flexDirection
:
'row'
}}
>
<
View
style
=
{{
flex
:
1
,
flexDirection
:
'row'
}}
>
<
View
style
=
{
styles
.
containerWallet
}
>
<
View
style
=
{
styles
.
containerWallet
}
>
<
AppText
i18nKey
=
{
'AccountWallet'
}
style
=
{
styles
.
txtWallet
}
>
<
AppText
i18nKey
=
{
'AccountWallet'
}
style
=
{
styles
.
txtWallet
}
><
/AppText
>
T
à
i
kho
ả
n
v
í
<
/AppText
>
<
View
style
=
{{
flexDirection
:
'row'
}}
>
<
View
style
=
{{
flexDirection
:
'row'
}}
>
<
Text
style
=
{
styles
.
txtMoney
}
>
<
Text
style
=
{
styles
.
txtMoney
}
>
{
current_money
==
0
?
0
:
toPriceVnd
(
current_money
)}
{
current_money
==
0
?
0
:
toPriceVnd
(
current_money
)}
...
@@ -82,9 +76,7 @@ const renderWallet = (status, current_money, current_cqg_money, contract) => {
...
@@ -82,9 +76,7 @@ const renderWallet = (status, current_money, current_cqg_money, contract) => {
<
View
style
=
{
styles
.
containerWallet
}
>
<
View
style
=
{
styles
.
containerWallet
}
>
<
AppText
<
AppText
i18nKey
=
{
'WaitOpenCQG'
}
i18nKey
=
{
'WaitOpenCQG'
}
style
=
{[
styles
.
txtWhite
,
{
color
:
'#FFB721'
}]}
>
style
=
{[
styles
.
txtWhite
,
{
color
:
'#FFB721'
}]}
><
/AppText
>
Ch
ờ
m
ở
TK
CQG
<
/AppText
>
<
/View
>
<
/View
>
<
/View
>
<
/View
>
);
);
...
@@ -92,9 +84,7 @@ const renderWallet = (status, current_money, current_cqg_money, contract) => {
...
@@ -92,9 +84,7 @@ const renderWallet = (status, current_money, current_cqg_money, contract) => {
return
(
return
(
<
View
style
=
{{
flex
:
1
,
flexDirection
:
'row'
}}
>
<
View
style
=
{{
flex
:
1
,
flexDirection
:
'row'
}}
>
<
View
style
=
{
styles
.
containerWallet
}
>
<
View
style
=
{
styles
.
containerWallet
}
>
<
AppText
i18nKey
=
{
'AccountWallet'
}
style
=
{
styles
.
txtWallet
}
>
<
AppText
i18nKey
=
{
'AccountWallet'
}
style
=
{
styles
.
txtWallet
}
><
/AppText
>
T
à
i
kho
ả
n
v
í
<
/AppText
>
<
View
style
=
{{
flexDirection
:
'row'
}}
>
<
View
style
=
{{
flexDirection
:
'row'
}}
>
<
Text
style
=
{
styles
.
txtMoney
}
>
<
Text
style
=
{
styles
.
txtMoney
}
>
{
' '
}
{
' '
}
...
@@ -111,9 +101,9 @@ const renderWallet = (status, current_money, current_cqg_money, contract) => {
...
@@ -111,9 +101,9 @@ const renderWallet = (status, current_money, current_cqg_money, contract) => {
navigate
.
navigate
(
PACKETCQG
);
navigate
.
navigate
(
PACKETCQG
);
}}
}}
style
=
{
styles
.
btn
}
>
style
=
{
styles
.
btn
}
>
<
AppText
i18nKey
=
{
'OpenAccountCQG'
}
style
=
{
styles
.
txtWhite
}
>
<
AppText
M
ở
t
à
i
kho
ả
n
CQG
i18nKey
=
{
'OpenAccountCQG'
}
<
/AppText
>
style
=
{
styles
.
txtWhite
}
>
<
/AppText
>
<
/TouchableOpacity
>
<
/TouchableOpacity
>
<
/View
>
<
/View
>
<
/View
>
<
/View
>
...
@@ -137,15 +127,11 @@ const renderWallet = (status, current_money, current_cqg_money, contract) => {
...
@@ -137,15 +127,11 @@ const renderWallet = (status, current_money, current_cqg_money, contract) => {
{
status
==
2
?
(
{
status
==
2
?
(
<
AppText
<
AppText
i18nKey
=
{
'WaitVerification'
}
i18nKey
=
{
'WaitVerification'
}
style
=
{{
fontSize
:
getFontXD
(
52
),
color
:
'white'
}}
>
style
=
{{
fontSize
:
getFontXD
(
52
),
color
:
'white'
}}
><
/AppText
>
Ch
ờ
x
á
c
minh
<
/AppText
>
)
:
(
)
:
(
<
AppText
<
AppText
i18nKey
=
{
'AccountVerify'
}
i18nKey
=
{
'AccountVerify'
}
style
=
{{
fontSize
:
getFontXD
(
52
),
color
:
'white'
}}
>
style
=
{{
fontSize
:
getFontXD
(
52
),
color
:
'white'
}}
><
/AppText
>
X
á
c
minh
t
à
i
kho
ả
n
<
/AppText
>
)}
)}
<
/ImageBackground
>
<
/ImageBackground
>
<
/TouchableOpacity
>
<
/TouchableOpacity
>
...
@@ -156,21 +142,15 @@ const renderWallet = (status, current_money, current_cqg_money, contract) => {
...
@@ -156,21 +142,15 @@ const renderWallet = (status, current_money, current_cqg_money, contract) => {
const
renderLabel
=
(
status
)
=>
{
const
renderLabel
=
(
status
)
=>
{
if
(
status
==
1
)
if
(
status
==
1
)
return
(
return
(
<
AppText
i18nKey
=
{
'NotVerified'
}
style
=
{{
color
:
'#E3434F'
}}
>
<
AppText
i18nKey
=
{
'NotVerified'
}
style
=
{{
color
:
'#E3434F'
}}
><
/AppText
>
Ch
ư
a
x
á
c
minh
<
/AppText
>
);
);
if
(
status
==
2
)
if
(
status
==
2
)
return
(
return
<
AppText
i18nKey
=
{
'Verified'
}
style
=
{{
color
:
'#FFB721'
}}
><
/AppText>
;
<
AppText
i18nKey
=
{
'Verified'
}
style
=
{{
color
:
'#FFB721'
}}
>
Ch
ờ
x
á
c
minh
<
/AppText
>
);
if
(
status
==
3
)
if
(
status
==
3
)
return
(
return
(
<
AppText
i18nKey
=
{
'WaitVerification'
}
style
=
{{
color
:
'#17B217'
}}
>
<
AppText
Đã
x
á
c
minh
i18nKey
=
{
'WaitVerification'
}
<
/AppText
>
style
=
{{
color
:
'#17B217'
}}
>
<
/AppText
>
);
);
};
};
...
...
src/components/Header/HeaderNewFeed.js
View file @
bf68a2f6
...
@@ -39,9 +39,7 @@ const HeaderHome = (props) => {
...
@@ -39,9 +39,7 @@ const HeaderHome = (props) => {
<
Image
source
=
{
R
.
images
.
iconMenu
}
style
=
{
styles
.
imgIcon
}
/
>
<
Image
source
=
{
R
.
images
.
iconMenu
}
style
=
{
styles
.
imgIcon
}
/
>
<
/TouchableOpacity
>
<
/TouchableOpacity
>
<
AppText
i18nKey
=
{
'Account'
}
style
=
{
styles
.
txtTitle
}
>
<
AppText
i18nKey
=
{
'Account'
}
style
=
{
styles
.
txtTitle
}
><
/AppText
>
T
à
i
kho
ả
n
<
/AppText
>
<
View
style
=
{
styles
.
imgIcon
}
/
>
<
View
style
=
{
styles
.
imgIcon
}
/
>
<
/View
>
<
/View
>
<
Modal
<
Modal
...
...
src/components/Header/HeaderSB.js
View file @
bf68a2f6
...
@@ -57,9 +57,7 @@ const HeaderSearch = (props) => {
...
@@ -57,9 +57,7 @@ const HeaderSearch = (props) => {
value
=
{
txtSearch
}
value
=
{
txtSearch
}
/
>
/
>
)
:
(
)
:
(
<
AppText
i18nKey
=
{
title
}
style
=
{
styles
.
txtTitle
}
>
<
AppText
i18nKey
=
{
title
}
style
=
{
styles
.
txtTitle
}
><
/AppText
>
{
title
?
title
:
''
}{
' '
}
<
/AppText
>
)}
)}
<
TouchableOpacity
onPress
=
{
toggleSearch
}
>
<
TouchableOpacity
onPress
=
{
toggleSearch
}
>
{
openSearch
?
(
{
openSearch
?
(
...
...
src/components/Header/HeaderSearch.js
View file @
bf68a2f6
...
@@ -57,9 +57,7 @@ const HeaderSearch = (props) => {
...
@@ -57,9 +57,7 @@ const HeaderSearch = (props) => {
value
=
{
txtSearch
}
value
=
{
txtSearch
}
/
>
/
>
)
:
(
)
:
(
<
AppText
i18nKey
=
{
title
}
style
=
{
styles
.
txtTitle
}
>
<
AppText
i18nKey
=
{
title
}
style
=
{
styles
.
txtTitle
}
><
/AppText
>
{
title
}
<
/AppText
>
)}
)}
<
TouchableOpacity
onPress
=
{
toggleSearch
}
>
<
TouchableOpacity
onPress
=
{
toggleSearch
}
>
{
openSearch
?
(
{
openSearch
?
(
...
...
src/components/Input/InputIcon.js
View file @
bf68a2f6
...
@@ -19,7 +19,7 @@ const InputIcon = (props) => {
...
@@ -19,7 +19,7 @@ const InputIcon = (props) => {
<
View
style
=
{
container
}
>
<
View
style
=
{
container
}
>
<
Image
source
=
{
icon
}
style
=
{
iconImg
}
/
>
<
Image
source
=
{
icon
}
style
=
{
iconImg
}
/
>
<
View
style
=
{
wrapRight
}
>
<
View
style
=
{
wrapRight
}
>
<
AppText
i18nKey
=
{
title
}
>
{
title
}
<
/AppText
>
<
AppText
i18nKey
=
{
title
}
>
<
/AppText
>
<
TextInput
<
TextInput
maxLength
=
{
maxLength
}
maxLength
=
{
maxLength
}
autoCapitalize
=
"none"
autoCapitalize
=
"none"
...
...
src/helper/i18/locales/en.js
View file @
bf68a2f6
...
@@ -45,7 +45,6 @@ export default {
...
@@ -45,7 +45,6 @@ export default {
SendFeedback
:
'Send feedback'
,
SendFeedback
:
'Send feedback'
,
GeneralBusiness
:
'General business'
,
GeneralBusiness
:
'General business'
,
Customer
:
'Customer'
,
Customer
:
'Customer'
,
LegalDocuments
:
'Legal documents'
,
Partnership
:
'Partnership'
,
Partnership
:
'Partnership'
,
AddPaymentMethod
:
'Add payment method'
,
AddPaymentMethod
:
'Add payment method'
,
DetailMethod
:
'Detail method'
,
DetailMethod
:
'Detail method'
,
...
@@ -56,4 +55,23 @@ export default {
...
@@ -56,4 +55,23 @@ export default {
PriceTable
:
'Price table'
,
PriceTable
:
'Price table'
,
Chart
:
'Chart'
,
Chart
:
'Chart'
,
Calendar
:
'Calendar'
,
Calendar
:
'Calendar'
,
Fullname
:
'Full name'
,
Birth
:
'Birth'
,
Male
:
'Male'
,
Status
:
'Status'
,
Phone
:
'Phone'
,
Address
:
'Address'
,
Update
:
'Update'
,
ContactCode
:
'Contact code'
,
TraddingAccountName
:
'Tradding account name'
,
TraddingAccountNumber
:
'Tradding account number'
,
GeneralInformation
:
'General information'
,
Profile
:
'Profile'
,
CustomerAgreement
:
'Customer agreement'
,
BusinessAgreement
:
'Business agreement'
,
PartnershipAgreement
:
'Partnership agreement'
,
Waiting
:
'Waiting'
,
Success
:
'Success'
,
};
};
src/helper/i18/locales/vn.js
View file @
bf68a2f6
...
@@ -45,7 +45,6 @@ export default {
...
@@ -45,7 +45,6 @@ export default {
SendFeedback
:
'Gửi phản hồi'
,
SendFeedback
:
'Gửi phản hồi'
,
GeneralBusiness
:
'Kinh doanh chung'
,
GeneralBusiness
:
'Kinh doanh chung'
,
Customer
:
'Khách hàng'
,
Customer
:
'Khách hàng'
,
LegalDocuments
:
'Giấy tờ pháp lý'
,
Partnership
:
'Quan hệ đối tác'
,
Partnership
:
'Quan hệ đối tác'
,
AddPaymentMethod
:
'Thêm phương thức thanh toán'
,
AddPaymentMethod
:
'Thêm phương thức thanh toán'
,
DetailMethod
:
'Chi tiết phương thức'
,
DetailMethod
:
'Chi tiết phương thức'
,
...
@@ -56,4 +55,19 @@ export default {
...
@@ -56,4 +55,19 @@ export default {
PriceTable
:
'Bảng giá'
,
PriceTable
:
'Bảng giá'
,
Chart
:
'Biểu đồ'
,
Chart
:
'Biểu đồ'
,
Calendar
:
'Lịch thị trường'
,
Calendar
:
'Lịch thị trường'
,
Fullname
:
'Họ và tên'
,
Birth
:
'Ngày sinh'
,
Male
:
'Giới tính'
,
Status
:
'Trạng thái'
,
Phone
:
'Điện thoại'
,
Address
:
'Địa chỉ'
,
Update
:
'Cập nhật'
,
ContactCode
:
'Mã hợp đồng'
,
TraddingAccountName
:
'Tên tài khoản giao dịch'
,
TraddingAccountNumber
:
'Số tài khoản giao dịch'
,
GeneralInformation
:
'Thông tin chung'
,
Profile
:
'Hồ sơ'
,
CustomerAgreement
:
'Thoả thuận khách hàng'
,
BusinessAgreement
:
'Thoả thuận kinh doanh chung'
,
PartnershipAgreement
:
'Thoả thuận quan hệ đối tác'
,
};
};
src/routers/PlussModal.js
View file @
bf68a2f6
...
@@ -54,9 +54,7 @@ const PlussModal = (props) => {
...
@@ -54,9 +54,7 @@ const PlussModal = (props) => {
}}
}}
style
=
{
styles
.
wraper1
}
>
style
=
{
styles
.
wraper1
}
>
<
Image
style
=
{
styles
.
imgIcon
}
source
=
{
R
.
images
.
iconWallet1
}
/
>
<
Image
style
=
{
styles
.
imgIcon
}
source
=
{
R
.
images
.
iconWallet1
}
/
>
<
AppText
i18nKey
=
{
'Wallet'
}
style
=
{
styles
.
txt
}
>
<
AppText
i18nKey
=
{
'Wallet'
}
style
=
{
styles
.
txt
}
><
/AppText
>
V
í
ti
ề
n
<
/AppText
>
<
/TouchableOpacity
>
<
/TouchableOpacity
>
<
TouchableOpacity
<
TouchableOpacity
onPress
=
{()
=>
{
onPress
=
{()
=>
{
...
@@ -65,9 +63,7 @@ const PlussModal = (props) => {
...
@@ -65,9 +63,7 @@ const PlussModal = (props) => {
}}
}}
style
=
{
styles
.
wraper1
}
>
style
=
{
styles
.
wraper1
}
>
<
Image
style
=
{
styles
.
imgIcon
}
source
=
{
R
.
images
.
iconRecharge
}
/
>
<
Image
style
=
{
styles
.
imgIcon
}
source
=
{
R
.
images
.
iconRecharge
}
/
>
<
AppText
i18nKey
=
{
'Deposit'
}
style
=
{
styles
.
txt
}
>
<
AppText
i18nKey
=
{
'Deposit'
}
style
=
{
styles
.
txt
}
><
/AppText
>
N
ạ
p
ti
ề
n
<
/AppText
>
<
/TouchableOpacity
>
<
/TouchableOpacity
>
<
TouchableOpacity
<
TouchableOpacity
onPress
=
{()
=>
{
onPress
=
{()
=>
{
...
@@ -76,9 +72,7 @@ const PlussModal = (props) => {
...
@@ -76,9 +72,7 @@ const PlussModal = (props) => {
}}
}}
style
=
{
styles
.
wraper1
}
>
style
=
{
styles
.
wraper1
}
>
<
Image
style
=
{
styles
.
imgIcon
}
source
=
{
R
.
images
.
iconWithdrawal
}
/
>
<
Image
style
=
{
styles
.
imgIcon
}
source
=
{
R
.
images
.
iconWithdrawal
}
/
>
<
AppText
i18nKey
=
{
'Withdraw'
}
style
=
{
styles
.
txt
}
>
<
AppText
i18nKey
=
{
'Withdraw'
}
style
=
{
styles
.
txt
}
><
/AppText
>
R
ú
t
ti
ề
n
<
/AppText
>
<
/TouchableOpacity
>
<
/TouchableOpacity
>
<
TouchableOpacity
<
TouchableOpacity
onPress
=
{()
=>
{
onPress
=
{()
=>
{
...
@@ -87,9 +81,7 @@ const PlussModal = (props) => {
...
@@ -87,9 +81,7 @@ const PlussModal = (props) => {
}}
}}
style
=
{
styles
.
wraper1
}
>
style
=
{
styles
.
wraper1
}
>
<
Image
style
=
{
styles
.
imgIcon
}
source
=
{
R
.
images
.
iconTransfer
}
/
>
<
Image
style
=
{
styles
.
imgIcon
}
source
=
{
R
.
images
.
iconTransfer
}
/
>
<
AppText
i18nKey
=
{
'Transfer'
}
style
=
{
styles
.
txt
}
>
<
AppText
i18nKey
=
{
'Transfer'
}
style
=
{
styles
.
txt
}
><
/AppText
>
Chuy
ể
n
kho
ả
n
<
/AppText
>
<
/TouchableOpacity
>
<
/TouchableOpacity
>
<
/View
>
<
/View
>
<
/View
>
<
/View
>
...
...
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