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
23060292
Commit
23060292
authored
May 18, 2021
by
Giang Tran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix code
parent
bc0c8dc0
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
47 additions
and
3 deletions
+47
-3
PacketCQG.js
src/Screens/Account/PacrtCQG/PacketCQG.js
+1
-0
CQG.js
src/Screens/Menu/Profile/Tab/CQG.js
+39
-2
ExchangeRate.js
src/Screens/Tool/ExchangeRate.js
+2
-0
en.js
src/helper/i18/locales/en.js
+2
-0
vn.js
src/helper/i18/locales/vn.js
+3
-1
No files found.
src/Screens/Account/PacrtCQG/PacketCQG.js
View file @
23060292
...
...
@@ -56,6 +56,7 @@ const PacketCQG = (props) => {
props
.
hideLoading
();
if
(
res
.
data
.
code
==
200
)
{
props
.
saveUserToRedux
(
res
.
data
.
data
);
navigate
.
goBack
();
showAlert
(
TYPE
.
SUCCESS
,
I18n
.
t
(
'Notification'
),
res
.
data
.
message
);
}
else
{
showAlert
(
TYPE
.
ERROR
,
I18n
.
t
(
'Notification'
),
res
.
data
.
message
);
...
...
src/Screens/Menu/Profile/Tab/CQG.js
View file @
23060292
import
React
from
'react'
;
import
{
View
,
Text
,
TouchableOpacity
,
Image
,
StyleSheet
}
from
'react-native'
;
import
R
from
'../../../../assets/R'
;
import
{
getFontXD
}
from
'../../../../Config/Functions'
;
import
{
getFontXD
,
HEIGHTXD
,
WIDTHXD
}
from
'../../../../Config/Functions'
;
import
{
connect
}
from
'react-redux'
;
import
AppText
from
'../../../../components/AppText'
;
import
I18n
from
'../../../../helper/i18/i18n'
;
...
...
@@ -9,6 +9,9 @@ import {useNavigation} from '@react-navigation/native';
import
{
PACKETCQG
}
from
'../../../../routers/ScreenNames'
;
const
Profile
=
(
props
)
=>
{
const
onClickCLose
=
()
=>
{
console
.
log
(
'Close click'
);
};
const
navigation
=
useNavigation
();
return
(
<
View
style
=
{
styles
.
container
}
>
...
...
@@ -30,6 +33,23 @@ const Profile = (props) => {
style
=
{
styles
.
txtTitle
}
><
/AppText
>
<
Text
style
=
{
styles
.
txtBig
}
>
{
props
.
user
.
cqg_account
}
<
/Text
>
<
/View
>
<
View
style
=
{{
flexDirection
:
'row'
,
alignItems
:
'center'
,
justifyContent
:
'space-between'
,
marginTop
:
50
,
}}
>
<
TouchableOpacity
onPress
=
{()
=>
navigation
.
navigate
(
PACKETCQG
)}
style
=
{
styles
.
btnLeft
}
>
<
AppText
i18nKey
=
{
'UpdatePacket'
}
style
=
{
styles
.
txtBtn
}
><
/AppText
>
<
/TouchableOpacity
>
<
TouchableOpacity
onPress
=
{
onClickCLose
}
style
=
{
styles
.
btnRight
}
>
<
AppText
i18nKey
=
{
'CloseAccount'
}
style
=
{
styles
.
txtBtn
}
><
/AppText
>
<
/TouchableOpacity
>
<
/View
>
<
/View
>
)
:
(
<
View
style
=
{{
justifyContent
:
'center'
,
alignItems
:
'center'
,
flex
:
1
}}
>
...
...
@@ -91,8 +111,9 @@ const styles = StyleSheet.create({
fontSize
:
getFontXD
(
46
),
},
txtBtn
:
{
fontSize
:
getFontXD
(
5
2
),
fontSize
:
getFontXD
(
4
2
),
color
:
R
.
colors
.
white
,
fontWeight
:
'600'
,
},
containerBtn
:
{
paddingVertical
:
10
,
...
...
@@ -101,6 +122,22 @@ const styles = StyleSheet.create({
borderRadius
:
5
,
marginTop
:
30
,
},
btnLeft
:
{
backgroundColor
:
R
.
colors
.
main
,
width
:
WIDTHXD
(
460
),
alignItems
:
'center'
,
justifyContent
:
'center'
,
height
:
HEIGHTXD
(
109
),
borderRadius
:
5
,
},
btnRight
:
{
backgroundColor
:
'#E3434F'
,
width
:
WIDTHXD
(
460
),
alignItems
:
'center'
,
justifyContent
:
'center'
,
height
:
HEIGHTXD
(
109
),
borderRadius
:
5
,
},
});
const
mapStateToProps
=
(
state
)
=>
{
...
...
src/Screens/Tool/ExchangeRate.js
View file @
23060292
...
...
@@ -74,6 +74,8 @@ const ExchangeRate = (props) => {
title
=
{
I18n
.
t
(
'UnitsQuotedFloor'
)}
/
>
<
TextField
isNumber
=
{
true
}
maxLength
=
{
12
}
onChangeText
=
{(
val
)
=>
setPriceExchange
(
val
)}
title
=
{
I18n
.
t
(
'ConversionPrice'
)}
/
>
...
...
src/helper/i18/locales/en.js
View file @
23060292
...
...
@@ -274,4 +274,6 @@ export default {
ProfitLoss
:
'Profit/Loss'
,
BUY_IN
:
'Buy in'
,
SELL_OUT
:
'Sell out'
,
CloseAccount
:
'Close account'
,
UpdatePacket
:
'Update packet'
,
};
src/helper/i18/locales/vn.js
View file @
23060292
...
...
@@ -92,7 +92,7 @@ export default {
Photo_library
:
'Thư viện ảnh'
,
Take_photo
:
'Chụp ảnh'
,
EnableCQG
:
'
Có tài khoản CQG
'
,
EnableCQG
:
'
Kích hoạt
'
,
Request_Open_Account_CQG
:
'Yêu cầu mở TK CQG'
,
Waiting_for_Progress
:
'Chờ xử lý'
,
Free
:
'Miễn phí'
,
...
...
@@ -269,4 +269,6 @@ export default {
SELL_OUT
:
'Bán ra'
,
EscrowCalculator
:
'Tính ký quỹ'
,
FirstEscrowTotal
:
'Ký quỹ khả dụng'
,
CloseAccount
:
'Đóng tài khoản'
,
UpdatePacket
:
'Cập nhật gói cước'
,
};
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