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
7a38dcbf
Commit
7a38dcbf
authored
Jun 10, 2021
by
Nguyễn Thị Thúy
Browse files
Options
Browse Files
Download
Plain Diff
merge func_smart_otp
parents
63a9432b
6be9c092
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
71 additions
and
11 deletions
+71
-11
Item.js
src/Screens/Action/Wallet/Tab/Item.js
+2
-3
Success.js
src/Screens/Action/Wallet/Tab/Success.js
+4
-1
Watting.js
src/Screens/Action/Wallet/Tab/Watting.js
+4
-1
Wallet.js
src/Screens/Action/Wallet/Wallet.js
+4
-4
SmartOTPConfig.js
src/Screens/SmartOTP/SmartOTPConfig.js
+8
-2
FAQs.js
src/Screens/SmartOTP/WebView/FAQs.js
+19
-0
RulesSmartOTP.js
src/Screens/SmartOTP/WebView/RulesSmartOTP.js
+20
-0
ScreenNames.js
src/routers/ScreenNames.js
+4
-0
StackNavigation.js
src/routers/StackNavigation.js
+6
-0
No files found.
src/Screens/Action/Wallet/Tab/Item.js
View file @
7a38dcbf
...
@@ -16,7 +16,7 @@ const Item = (props) => {
...
@@ -16,7 +16,7 @@ const Item = (props) => {
const
{
item
}
=
props
;
const
{
item
}
=
props
;
const
navigate
=
useNavigation
();
const
navigate
=
useNavigation
();
return
(
return
(
<
View
style
=
{
styles
.
container
}
>
<
View
style
=
{
[
styles
.
container
,
props
.
isEnd
?
{
marginBottom
:
60
}
:
{}]
}
>
<
Block
flex
=
{
1
}
row
>
<
Block
flex
=
{
1
}
row
>
{
/* <View style={[styles.wrapLeft, {backgroundColor: item.color}]} />
{
/* <View style={[styles.wrapLeft, {backgroundColor: item.color}]} />
<View style={styles.wrapDate}>
<View style={styles.wrapDate}>
...
@@ -82,9 +82,8 @@ const styles = StyleSheet.create({
...
@@ -82,9 +82,8 @@ const styles = StyleSheet.create({
elevation
:
5
,
elevation
:
5
,
marginHorizontal
:
10
,
marginHorizontal
:
10
,
backgroundColor
:
R
.
colors
.
white
,
backgroundColor
:
R
.
colors
.
white
,
marginTop
:
10
,
borderRadius
:
HEIGHTXD
(
30
),
borderRadius
:
HEIGHTXD
(
30
),
margin
Bottom
:
10
,
margin
Top
:
10
,
},
},
wrapRight
:
{
wrapRight
:
{
borderLeftColor
:
R
.
colors
.
borderGray
,
borderLeftColor
:
R
.
colors
.
borderGray
,
...
...
src/Screens/Action/Wallet/Tab/Success.js
View file @
7a38dcbf
...
@@ -80,6 +80,7 @@ const Success = (props) => {
...
@@ -80,6 +80,7 @@ const Success = (props) => {
)
:
(
)
:
(
<
FlatList
<
FlatList
keyExtractor
=
{(
item
)
=>
item
.
transection_id
+
'a'
}
keyExtractor
=
{(
item
)
=>
item
.
transection_id
+
'a'
}
showsVerticalScrollIndicator
=
{
false
}
refreshing
=
{
isRefresh
}
refreshing
=
{
isRefresh
}
onRefresh
=
{
onRefresh
}
onRefresh
=
{
onRefresh
}
onEndReachedThreshold
=
{
0.01
}
onEndReachedThreshold
=
{
0.01
}
...
@@ -87,7 +88,9 @@ const Success = (props) => {
...
@@ -87,7 +88,9 @@ const Success = (props) => {
onLoadMore
();
onLoadMore
();
}}
}}
data
=
{
data
}
data
=
{
data
}
renderItem
=
{({
item
})
=>
<
Item
item
=
{
item
}
/>
}
renderItem
=
{({
item
,
index
})
=>
(
<
Item
item
=
{
item
}
isEnd
=
{
index
+
1
==
data
.
length
}
/
>
)}
/
>
/
>
)}
)}
<
/View
>
<
/View
>
...
...
src/Screens/Action/Wallet/Tab/Watting.js
View file @
7a38dcbf
...
@@ -87,6 +87,7 @@ const Watting = (props) => {
...
@@ -87,6 +87,7 @@ const Watting = (props) => {
)
:
(
)
:
(
<
FlatList
<
FlatList
keyExtractor
=
{(
item
)
=>
item
.
transection_id
+
'a'
}
keyExtractor
=
{(
item
)
=>
item
.
transection_id
+
'a'
}
showsVerticalScrollIndicator
=
{
false
}
refreshing
=
{
isRefresh
}
refreshing
=
{
isRefresh
}
onRefresh
=
{
onRefresh
}
onRefresh
=
{
onRefresh
}
onEndReachedThreshold
=
{
0.01
}
onEndReachedThreshold
=
{
0.01
}
...
@@ -94,7 +95,9 @@ const Watting = (props) => {
...
@@ -94,7 +95,9 @@ const Watting = (props) => {
onLoadMore
();
onLoadMore
();
}}
}}
data
=
{
data
}
data
=
{
data
}
renderItem
=
{({
item
})
=>
<
Item
item
=
{
item
}
/>
}
renderItem
=
{({
item
,
index
})
=>
(
<
Item
item
=
{
item
}
isEnd
=
{
index
+
1
==
data
.
length
}
/
>
)}
/
>
/
>
)}
)}
<
/View
>
<
/View
>
...
...
src/Screens/Action/Wallet/Wallet.js
View file @
7a38dcbf
...
@@ -62,13 +62,13 @@ const styles = StyleSheet.create({
...
@@ -62,13 +62,13 @@ const styles = StyleSheet.create({
},
},
btnRight
:
{
btnRight
:
{
width
:
WIDTHXD
(
400
),
width
:
WIDTHXD
(
400
),
height
:
HEIGHTXD
(
1
0
0
),
height
:
HEIGHTXD
(
1
2
0
),
backgroundColor
:
R
.
colors
.
main
,
backgroundColor
:
R
.
colors
.
main
,
borderRadius
:
10
,
borderRadius
:
10
,
justifyContent
:
'center'
,
justifyContent
:
'center'
,
alignItems
:
'center'
,
alignItems
:
'center'
,
position
:
'absolute'
,
position
:
'absolute'
,
bottom
:
1
0
,
bottom
:
2
0
,
right
:
30
,
right
:
30
,
shadowColor
:
'#AFA9A9'
,
shadowColor
:
'#AFA9A9'
,
shadowOffset
:
{
shadowOffset
:
{
...
@@ -81,13 +81,13 @@ const styles = StyleSheet.create({
...
@@ -81,13 +81,13 @@ const styles = StyleSheet.create({
},
},
btnLeft
:
{
btnLeft
:
{
width
:
WIDTHXD
(
400
),
width
:
WIDTHXD
(
400
),
height
:
HEIGHTXD
(
1
0
0
),
height
:
HEIGHTXD
(
1
2
0
),
backgroundColor
:
R
.
colors
.
main
,
backgroundColor
:
R
.
colors
.
main
,
borderRadius
:
10
,
borderRadius
:
10
,
justifyContent
:
'center'
,
justifyContent
:
'center'
,
alignItems
:
'center'
,
alignItems
:
'center'
,
position
:
'absolute'
,
position
:
'absolute'
,
bottom
:
1
0
,
bottom
:
2
0
,
left
:
30
,
left
:
30
,
shadowColor
:
'#AFA9A9'
,
shadowColor
:
'#AFA9A9'
,
shadowOffset
:
{
shadowOffset
:
{
...
...
src/Screens/SmartOTP/SmartOTPConfig.js
View file @
7a38dcbf
...
@@ -9,6 +9,8 @@ import {
...
@@ -9,6 +9,8 @@ import {
UPDATEOTP
,
UPDATEOTP
,
ENTER_PASSWORD_SMART_OTP
,
ENTER_PASSWORD_SMART_OTP
,
SETTINGOTP
,
SETTINGOTP
,
FAQSSMARTOTP
,
RULESSMARTOTP
,
}
from
'../../routers/ScreenNames'
;
}
from
'../../routers/ScreenNames'
;
import
R
from
'../../assets/R'
;
import
R
from
'../../assets/R'
;
import
Icon
from
'react-native-vector-icons/AntDesign'
;
import
Icon
from
'react-native-vector-icons/AntDesign'
;
...
@@ -48,14 +50,18 @@ const SmartOTPConfig = (props) => {
...
@@ -48,14 +50,18 @@ const SmartOTPConfig = (props) => {
<
/TouchableOpacity
>
<
/TouchableOpacity
>
)}
)}
<
TouchableOpacity
style
=
{
styles
.
container
}
>
<
TouchableOpacity
onPress
=
{()
=>
navigation
.
navigate
(
RULESSMARTOTP
)}
style
=
{
styles
.
container
}
>
<
Image
style
=
{
styles
.
imgIcon
}
source
=
{
R
.
images
.
rules
}
/
>
<
Image
style
=
{
styles
.
imgIcon
}
source
=
{
R
.
images
.
rules
}
/
>
<
View
style
=
{{
flex
:
1
,
justifyContent
:
'center'
}}
>
<
View
style
=
{{
flex
:
1
,
justifyContent
:
'center'
}}
>
<
AppText
i18nKey
=
{
'Rules'
}
/
>
<
AppText
i18nKey
=
{
'Rules'
}
/
>
<
/View
>
<
/View
>
<
Icon
name
=
{
'right'
}
size
=
{
20
}
color
=
{
R
.
colors
.
color777
}
/
>
<
Icon
name
=
{
'right'
}
size
=
{
20
}
color
=
{
R
.
colors
.
color777
}
/
>
<
/TouchableOpacity
>
<
/TouchableOpacity
>
<
TouchableOpacity
style
=
{
styles
.
container
}
>
<
TouchableOpacity
onPress
=
{()
=>
navigation
.
navigate
(
FAQSSMARTOTP
)}
style
=
{
styles
.
container
}
>
<
Image
style
=
{
styles
.
imgIcon
}
source
=
{
R
.
images
.
faq
}
/
>
<
Image
style
=
{
styles
.
imgIcon
}
source
=
{
R
.
images
.
faq
}
/
>
<
View
style
=
{{
flex
:
1
,
justifyContent
:
'center'
}}
>
<
View
style
=
{{
flex
:
1
,
justifyContent
:
'center'
}}
>
<
AppText
i18nKey
=
{
'FAQs'
}
/
>
<
AppText
i18nKey
=
{
'FAQs'
}
/
>
...
...
src/Screens/SmartOTP/WebView/FAQs.js
0 → 100644
View file @
7a38dcbf
import
React
from
'react'
;
import
{
View
,
Text
}
from
'react-native'
;
import
HeaderBack
from
'../../../components/Header/HeaderBack'
;
import
{
WebView
}
from
'react-native-webview'
;
const
FAQs
=
(
props
)
=>
{
return
(
<
View
style
=
{{
flex
:
1
}}
>
<
HeaderBack
isWhite
=
{
true
}
title
=
{
'FAQs'
}
/
>
<
WebView
androidHardwareAccelerationDisabled
=
{
true
}
source
=
{{
uri
:
'http://api.dcvinvest.com/webview/smart-otp/faqs'
,
}}
/
>
<
/View
>
);
};
export
default
FAQs
;
src/Screens/SmartOTP/WebView/RulesSmartOTP.js
0 → 100644
View file @
7a38dcbf
import
React
from
'react'
;
import
{
View
,
Text
}
from
'react-native'
;
import
{
getFontXD
}
from
'../../../Config/Functions'
;
import
HeaderBack
from
'../../../components/Header/HeaderBack'
;
import
{
WebView
}
from
'react-native-webview'
;
const
RulesSmartOTP
=
(
props
)
=>
{
return
(
<
View
style
=
{{
flex
:
1
}}
>
<
HeaderBack
isWhite
=
{
true
}
title
=
{
'Rules'
}
/
>
<
WebView
androidHardwareAccelerationDisabled
=
{
true
}
source
=
{{
uri
:
'http://api.dcvinvest.com/webview/smart-otp/term-and-condition'
,
}}
/
>
<
/View
>
);
};
export
default
RulesSmartOTP
;
src/routers/ScreenNames.js
View file @
7a38dcbf
...
@@ -89,3 +89,7 @@ export const RESET_SMART_OTP = 'RESET_SMART_OTP';
...
@@ -89,3 +89,7 @@ export const RESET_SMART_OTP = 'RESET_SMART_OTP';
export
const
CHANGESMARTOTP
=
'CHANGESMARTOTP'
;
export
const
CHANGESMARTOTP
=
'CHANGESMARTOTP'
;
export
const
CONFIRMCHANGESMARTOTP
=
'CONFIRMCHANGESMARTOTP'
;
export
const
CONFIRMCHANGESMARTOTP
=
'CONFIRMCHANGESMARTOTP'
;
export
const
RULESSMARTOTP
=
'RULESSMARTOTP'
;
export
const
FAQSSMARTOTP
=
'FAQSSMARTOTP'
;
src/routers/StackNavigation.js
View file @
7a38dcbf
...
@@ -65,6 +65,9 @@ import ConfirmOTPSmart from '../Screens/SmartOTP/ConfirmOTPSmart';
...
@@ -65,6 +65,9 @@ import ConfirmOTPSmart from '../Screens/SmartOTP/ConfirmOTPSmart';
import
ChangeSmartOTP
from
'../Screens/SmartOTP/ChangeSmartOTP/ChangeSmartOTP'
;
import
ChangeSmartOTP
from
'../Screens/SmartOTP/ChangeSmartOTP/ChangeSmartOTP'
;
import
ConfirmChangeSmartOTP
from
'../Screens/SmartOTP/ChangeSmartOTP/ConfirmChangeSmartOTP'
;
import
ConfirmChangeSmartOTP
from
'../Screens/SmartOTP/ChangeSmartOTP/ConfirmChangeSmartOTP'
;
import
FAQs
from
'../Screens/SmartOTP/WebView/FAQs'
;
import
RulesSmartOTP
from
'../Screens/SmartOTP/WebView/RulesSmartOTP'
;
import
*
as
ScreenName
from
'./ScreenNames'
;
import
*
as
ScreenName
from
'./ScreenNames'
;
const
Stack
=
createStackNavigator
();
const
Stack
=
createStackNavigator
();
...
@@ -172,6 +175,9 @@ function MyStack(props) {
...
@@ -172,6 +175,9 @@ function MyStack(props) {
<
Stack
.
Screen
name
=
{
ScreenName
.
ENTER_PASSWORD_SMART_OTP
}
component
=
{
EnterPasswordSmartOTP
}
/
>
<
Stack
.
Screen
name
=
{
ScreenName
.
ENTER_PASSWORD_SMART_OTP
}
component
=
{
EnterPasswordSmartOTP
}
/
>
<
Stack
.
Screen
name
=
{
ScreenName
.
RESET_SMART_OTP
}
component
=
{
ResetSmartOTP
}
/
>
<
Stack
.
Screen
name
=
{
ScreenName
.
RESET_SMART_OTP
}
component
=
{
ResetSmartOTP
}
/
>
<
Stack
.
Screen
name
=
{
ScreenName
.
FAQSSMARTOTP
}
component
=
{
FAQs
}
/
>
<
Stack
.
Screen
name
=
{
ScreenName
.
RULESSMARTOTP
}
component
=
{
RulesSmartOTP
}
/
>
<
Stack
.
Screen
<
Stack
.
Screen
name
=
{
ScreenName
.
FORGOTPASSWORD
}
name
=
{
ScreenName
.
FORGOTPASSWORD
}
component
=
{
ForgotPassWord
}
component
=
{
ForgotPassWord
}
...
...
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