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
1e8e457f
Commit
1e8e457f
authored
Jun 10, 2021
by
Nguyễn Thị Thúy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merge func_smart_otp
parent
fb0f1c10
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
30 deletions
+22
-30
project.pbxproj
ios/Invest.xcodeproj/project.pbxproj
+6
-6
WalletDeposit.js
src/Screens/Action/Wallet/WalletDeposit.js
+15
-22
Home.js
src/Screens/Home/Home.js
+0
-1
PriceListView.js
src/Screens/Home/PriceListView.js
+1
-1
No files found.
ios/Invest.xcodeproj/project.pbxproj
View file @
1e8e457f
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
2DCD954D1E0B4F2C00145EB5
/* InvestTests.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
00E356F21AD99517003FC87E
/* InvestTests.m */
;
};
2DCD954D1E0B4F2C00145EB5
/* InvestTests.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
00E356F21AD99517003FC87E
/* InvestTests.m */
;
};
2FCC6749524E697FC9323F22
/* libPods-Invest-InvestTests.a in Frameworks */
=
{
isa
=
PBXBuildFile
;
fileRef
=
ABCEBFE5646F1EF68E7C87AB
/* libPods-Invest-InvestTests.a */
;
};
2FCC6749524E697FC9323F22
/* libPods-Invest-InvestTests.a in Frameworks */
=
{
isa
=
PBXBuildFile
;
fileRef
=
ABCEBFE5646F1EF68E7C87AB
/* libPods-Invest-InvestTests.a */
;
};
48E6A9A75AE9C55476F21D2D
/* libPods-Invest-tvOSTests.a in Frameworks */
=
{
isa
=
PBXBuildFile
;
fileRef
=
4ECD31835B4784D2DC719E76
/* libPods-Invest-tvOSTests.a */
;
};
48E6A9A75AE9C55476F21D2D
/* libPods-Invest-tvOSTests.a in Frameworks */
=
{
isa
=
PBXBuildFile
;
fileRef
=
4ECD31835B4784D2DC719E76
/* libPods-Invest-tvOSTests.a */
;
};
52B7A0A425F722CF00CEDA09
/*
BuildFile
in Resources */
=
{
isa
=
PBXBuildFile
;
};
52B7A0A425F722CF00CEDA09
/*
(null)
in Resources */
=
{
isa
=
PBXBuildFile
;
};
52F3AE2D26257DEC00F77114
/* GoogleService-Info.plist in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
52F3AE2C26257DEB00F77114
/* GoogleService-Info.plist */
;
};
52F3AE2D26257DEC00F77114
/* GoogleService-Info.plist in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
52F3AE2C26257DEB00F77114
/* GoogleService-Info.plist */
;
};
52FB2B09262400D400DD7983
/* BootSplash.storyboard in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
52FB2B08262400D400DD7983
/* BootSplash.storyboard */
;
};
52FB2B09262400D400DD7983
/* BootSplash.storyboard in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
52FB2B08262400D400DD7983
/* BootSplash.storyboard */
;
};
52FB2B0A262400D400DD7983
/* BootSplash.storyboard in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
52FB2B08262400D400DD7983
/* BootSplash.storyboard */
;
};
52FB2B0A262400D400DD7983
/* BootSplash.storyboard in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
52FB2B08262400D400DD7983
/* BootSplash.storyboard */
;
};
...
@@ -406,7 +406,7 @@
...
@@ -406,7 +406,7 @@
13B07FBF1A68108700A75B9A
/* Images.xcassets in Resources */
,
13B07FBF1A68108700A75B9A
/* Images.xcassets in Resources */
,
13B07FBD1A68108700A75B9A
/* LaunchScreen.xib in Resources */
,
13B07FBD1A68108700A75B9A
/* LaunchScreen.xib in Resources */
,
52F3AE2D26257DEC00F77114
/* GoogleService-Info.plist in Resources */
,
52F3AE2D26257DEC00F77114
/* GoogleService-Info.plist in Resources */
,
52B7A0A425F722CF00CEDA09
/*
BuildFile
in Resources */
,
52B7A0A425F722CF00CEDA09
/*
(null)
in Resources */
,
52FB2B09262400D400DD7983
/* BootSplash.storyboard in Resources */
,
52FB2B09262400D400DD7983
/* BootSplash.storyboard in Resources */
,
);
);
runOnlyForDeploymentPostprocessing
=
0
;
runOnlyForDeploymentPostprocessing
=
0
;
...
@@ -903,7 +903,7 @@
...
@@ -903,7 +903,7 @@
CODE_SIGN_ENTITLEMENTS
=
Invest/Invest.entitlements
;
CODE_SIGN_ENTITLEMENTS
=
Invest/Invest.entitlements
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_STYLE
=
Automatic
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
6
;
CURRENT_PROJECT_VERSION
=
5
;
DEVELOPMENT_TEAM
=
MXZ24GRH48
;
DEVELOPMENT_TEAM
=
MXZ24GRH48
;
ENABLE_BITCODE
=
NO
;
ENABLE_BITCODE
=
NO
;
GCC_PREPROCESSOR_DEFINITIONS
=
(
GCC_PREPROCESSOR_DEFINITIONS
=
(
...
@@ -912,7 +912,7 @@
...
@@ -912,7 +912,7 @@
);
);
INFOPLIST_FILE
=
Invest/Info.plist
;
INFOPLIST_FILE
=
Invest/Info.plist
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks"
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks"
;
MARKETING_VERSION
=
2.
1
;
MARKETING_VERSION
=
2.
0
;
OTHER_LDFLAGS
=
(
OTHER_LDFLAGS
=
(
"$(inherited)"
,
"$(inherited)"
,
"-ObjC"
,
"-ObjC"
,
...
@@ -937,11 +937,11 @@
...
@@ -937,11 +937,11 @@
CODE_SIGN_ENTITLEMENTS
=
Invest/Invest.entitlements
;
CODE_SIGN_ENTITLEMENTS
=
Invest/Invest.entitlements
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_STYLE
=
Automatic
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
6
;
CURRENT_PROJECT_VERSION
=
5
;
DEVELOPMENT_TEAM
=
MXZ24GRH48
;
DEVELOPMENT_TEAM
=
MXZ24GRH48
;
INFOPLIST_FILE
=
Invest/Info.plist
;
INFOPLIST_FILE
=
Invest/Info.plist
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks"
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks"
;
MARKETING_VERSION
=
2.
1
;
MARKETING_VERSION
=
2.
0
;
OTHER_LDFLAGS
=
(
OTHER_LDFLAGS
=
(
"$(inherited)"
,
"$(inherited)"
,
"-ObjC"
,
"-ObjC"
,
...
...
src/Screens/Action/Wallet/WalletDeposit.js
View file @
1e8e457f
import
React
,
{
useState
}
from
'react'
;
import
React
,
{
useState
}
from
'react'
;
import
{
import
{
View
,
Text
,
StyleSheet
,
Dimensions
,
Dimensions
,
TouchableOpacity
,
Alert
,
TouchableWithoutFeedback
,
Keyboard
,
Keyboard
,
KeyboardAvoidingView
,
KeyboardAvoidingView
,
Platform
,
Platform
,
ScrollView
,
ScrollView
,
StyleSheet
,
Text
,
TouchableOpacity
,
TouchableWithoutFeedback
,
View
,
}
from
'react-native'
;
}
from
'react-native'
;
import
R
from
'../../../assets/R'
;
import
R
from
'../../../assets/R'
;
import
HeaderBack
from
'../../../components/Header/HeaderBack'
;
import
HeaderBack
from
'../../../components/Header/HeaderBack'
;
import
TextField
from
'../../../components/Input/TextField'
;
import
TextMulti
from
'../../../components/Input/TextMulti'
;
import
TextMulti
from
'../../../components/Input/TextMulti'
;
import
TextDisable
from
'../../../components/Input/TextDisable'
;
import
{
useNavigation
}
from
'@react-navigation/native'
;
import
{
useNavigation
}
from
'@react-navigation/native'
;
import
{
import
{
checkFormatArray
,
getFontXD
,
HEIGHTXD
,
toPriceVnd
,
WIDTHXD
}
from
'../../../Config/Functions'
;
getFontXD
,
toPriceVnd
,
checkFormatArray
,
WIDTHXD
,
HEIGHTXD
,
}
from
'../../../Config/Functions'
;
import
{
connect
}
from
'react-redux'
;
import
{
connect
}
from
'react-redux'
;
import
{
showLoading
,
hideLoading
}
from
'../../../actions/loadingAction'
;
import
{
hideLoading
,
showLoading
}
from
'../../../actions/loadingAction'
;
import
{
walletDeposit
}
from
'../../../apis/Functions/Deposit'
;
import
TextMoney
from
'../../../components/Input/InputMoney'
;
import
TextMoney
from
'../../../components/Input/InputMoney'
;
import
I18n
from
'../../../helper/i18/i18n'
;
import
I18n
from
'../../../helper/i18/i18n'
;
import
{
ENTER_PASSWORD_SMART_OTP
,
OTPWALLET
,
SMARTOTP
}
from
'../../../routers/ScreenNames'
;
import
{
ENTER_PASSWORD_SMART_OTP
,
SMARTOTP
}
from
'../../../routers/ScreenNames'
;
import
{
getOTPApi
}
from
'../../../apis/Functions/users'
;
import
{
showAlert
,
TYPE
}
from
'../../../components/DropdownAlert'
;
import
{
showAlert
,
TYPE
}
from
'../../../components/DropdownAlert'
;
import
EnterPasswordSmartOTP
from
'../../SmartOTP/EnterPasswordSmartOTP'
;
const
{
width
}
=
Dimensions
.
get
(
'window'
);
const
{
width
}
=
Dimensions
.
get
(
'window'
);
...
@@ -49,11 +36,17 @@ const WalletDeposit = (props) => {
...
@@ -49,11 +36,17 @@ const WalletDeposit = (props) => {
I18n
.
t
(
'Note'
).
toLowerCase
(),
I18n
.
t
(
'Note'
).
toLowerCase
(),
];
];
const
index
=
checkFormatArray
([
amount
,
notes
]);
const
index
=
checkFormatArray
([
amount
]);
if
(
index
===
true
)
{
if
(
index
===
true
)
{
navigate
.
navigate
(
ENTER_PASSWORD_SMART_OTP
,
{
navigate
.
navigate
(
ENTER_PASSWORD_SMART_OTP
,
{
onGoToSmartOTP
:
(
pinCode
,
otp
)
=>
onGoToSmartOTP
(
pinCode
,
otp
)
onGoToSmartOTP
:
(
pinCode
,
otp
)
=>
onGoToSmartOTP
(
pinCode
,
otp
)
});
});
}
else
{
showAlert
(
TYPE
.
WARN
,
I18n
.
t
(
'Notification'
),
I18n
.
t
(
'Please_fill_in'
)
+
titles
[
index
],
);
}
}
};
};
const
onGoToSmartOTP
=
(
pinCode
,
otp
)
=>
{
const
onGoToSmartOTP
=
(
pinCode
,
otp
)
=>
{
...
...
src/Screens/Home/Home.js
View file @
1e8e457f
...
@@ -218,7 +218,6 @@ const Home = (props) => {
...
@@ -218,7 +218,6 @@ const Home = (props) => {
/
>
/
>
);
);
};
};
<
VersionChecker
/>
;
const
mapStateToProps
=
(
state
)
=>
{
const
mapStateToProps
=
(
state
)
=>
{
return
{
return
{
user
:
state
.
userReducer
,
user
:
state
.
userReducer
,
...
...
src/Screens/Home/PriceListView.js
View file @
1e8e457f
...
@@ -40,7 +40,7 @@ const PriceListView = (props) => {
...
@@ -40,7 +40,7 @@ const PriceListView = (props) => {
<
/View
>
<
/View
>
<
FlatList
<
FlatList
style
=
{{
paddingBottom
:
HEIGHTXD
(
15
),
backgroundColor
:
R
.
colors
.
white
}}
style
=
{{
paddingBottom
:
HEIGHTXD
(
15
),
backgroundColor
:
R
.
colors
.
white
}}
keyExtractor
=
{(
item
)
=>
item
.
id
}
keyExtractor
=
{(
item
)
=>
item
.
id
.
toString
()
}
data
=
{
dataPrice
}
data
=
{
dataPrice
}
ListHeaderComponent
=
{()
=>
ListHeaderComponent
=
{()
=>
<
View
style
=
{[
styles
.
container
]}
>
<
View
style
=
{[
styles
.
container
]}
>
...
...
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