Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
C
clone_excelso
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Prasetya Saputra
clone_excelso
Commits
836486de
Commit
836486de
authored
Aug 04, 2020
by
Trisno
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update fixing bug
parent
639be934
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
12 deletions
+19
-12
app.json
app.json
+1
-1
en.json
lib/en.json
+2
-1
id.json
lib/id.json
+2
-1
NewPassword.js
view/NewPassword.js
+13
-3
ResetPassword.js
view/ResetPassword.js
+1
-6
No files found.
app.json
View file @
836486de
{
"expo"
:
{
"extra"
:
{
"buildNumber"
:
"12
7
"
,
"buildNumber"
:
"12
8
"
,
"remarks"
:
""
},
...
...
lib/en.json
View file @
836486de
...
...
@@ -222,5 +222,6 @@
"upgradePremiumRespon"
:
"We have received your premium upgrade request, please wait 1x24 hours!"
,
"signin"
:
"Sign In"
,
"cardActivation"
:
"Card Activation"
,
"headerPrivacyPolicy"
:
"Privacy Policy"
"headerPrivacyPolicy"
:
"Privacy Policy"
,
"alertTokenResetPassword"
:
"Please insert token"
}
\ No newline at end of file
lib/id.json
View file @
836486de
...
...
@@ -222,5 +222,6 @@
"upgradePremiumRespon"
:
"Kita sudah menerima permintaan upgrade premium, mohon tunggu 1x24 jam!"
,
"signin"
:
"Masuk"
,
"cardActivation"
:
"Aktivasi Kartu"
,
"headerPrivacyPolicy"
:
"Kebijakan Privasi"
"headerPrivacyPolicy"
:
"Kebijakan Privasi"
,
"alertTokenResetPassword"
:
"Silahkan masukan token"
}
\ No newline at end of file
view/NewPassword.js
View file @
836486de
...
...
@@ -29,7 +29,16 @@ class NewPassword extends React.Component {
this
.
setState
({
spinner
:
true
,
})
if
(
this
.
state
.
password
!==
this
.
state
.
password_confirmation
)
{
if
(
this
.
state
.
confirmation_number
==
''
)
{
this
.
setState
({
spinner
:
false
,
})
Alert
.
alert
(
''
,
i18n
.
t
(
'alertTokenResetPassword'
)
,
)
}
else
if
(
this
.
state
.
password
!==
this
.
state
.
password_confirmation
)
{
this
.
setState
({
spinner
:
false
,
})
...
...
@@ -70,7 +79,7 @@ class NewPassword extends React.Component {
spinner
:
false
,
})
let
response
=
error
.
response
.
data
;
Alert
.
alert
(
response
.
msg
);
Alert
.
alert
(
''
,
response
.
msg
);
})
}
...
...
@@ -90,6 +99,7 @@ class NewPassword extends React.Component {
<
Text
style
=
{{
fontFamily
:
'Gotham-Black'
,
color
:
'#CFB368'
,
fontSize
:
20
,
textAlign
:
'center'
,
margin
:
3
}}
>
{
i18n
.
t
(
'token'
)}
<
/Text
>
<
TextInput
style
=
{{
height
:
40
,
borderWidth
:
1
,
padding
:
5
,
margin
:
10
,
borderRadius
:
10
,
borderColor
:
'grey'
,
fontFamily
:
'Gotham-Black'
,
textAlign
:
'center'
,
color
:
'grey'
,
fontWeight
:
'bold'
,
fontSize
:
20
}}
onChangeText
=
{(
confirmation_number
)
=>
this
.
setState
({
confirmation_number
})}
keyboardType
=
'numeric'
caretHidden
=
{
this
.
state
.
caretHidden
}
onFocus
=
{()
=>
this
.
setState
({
caretHidden
:
false
})}
value
=
{
this
.
state
.
confirmation_number
}
/
>
...
...
@@ -107,7 +117,7 @@ class NewPassword extends React.Component {
caretHidden
=
{
this
.
state
.
caretHidden
}
onFocus
=
{()
=>
this
.
setState
({
caretHidden
:
false
})}
secureTextEntry
=
{
true
}
/
>
<
TouchableOpacity
style
=
{{
height
:
100
}}
onPress
=
{()
=>
this
.
handleResetPassword
()}
>
<
TouchableOpacity
style
=
{{
height
:
100
}}
onPress
=
{()
=>
this
.
validation
()}
>
<
View
style
=
{{
backgroundColor
:
'#CFB368'
,
height
:
45
,
top
:
20
,
borderRadius
:
10
,
marginRight
:
50
,
marginLeft
:
50
}}
>
<
Text
style
=
{{
alignSelf
:
'center'
,
top
:
10
,
color
:
'white'
,
fontFamily
:
'Gotham-Black'
,
fontSize
:
20
}}
>
{
i18n
.
t
(
'submit'
)}
<
/Text
>
<
/View
>
...
...
view/ResetPassword.js
View file @
836486de
...
...
@@ -65,12 +65,7 @@ class ResetPassword extends React.Component {
response
.
msg
,
[
{
text
:
i18n
.
t
(
'alertno'
),
onPress
:
()
=>
console
.
log
(
'Cancel Reset password'
),
style
:
'cancel'
,
},
{
text
:
i18n
.
t
(
'alertyes'
),
onPress
:
()
=>
this
.
setState
({
spinner
:
false
})
text
:
'OK'
,
onPress
:
()
=>
this
.
setState
({
spinner
:
false
})
},
],
{
cancelable
:
false
},
...
...
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