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
6578a6d2
Commit
6578a6d2
authored
Jun 25, 2020
by
Wahyu Adjie Prasetyo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
memperbaiki bug ke dua soal alert menjadi 80 detik
parent
dd6df037
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
CardActivation.js
view/CardActivation.js
+8
-4
No files found.
view/CardActivation.js
View file @
6578a6d2
...
...
@@ -16,7 +16,7 @@ class CardActivation extends React.Component {
card_number
:
""
,
card_nums
:
this
.
props
.
route
.
params
.
cardNumber
,
token
:
""
,
timer
:
3
,
timer
:
80
,
onclickToken
:
false
,
onclick
:
false
,
spinner
:
false
,
...
...
@@ -97,7 +97,9 @@ class CardActivation extends React.Component {
}
handleToken
()
{
this
.
setState
({
spinner
:
true
,
})
if
(
this
.
state
.
mobile_phone
==
''
)
{
Alert
.
alert
(
''
,
'Masukan No telp '
);
}
else
{
...
...
@@ -115,8 +117,10 @@ class CardActivation extends React.Component {
1000
);
this
.
setState
({
onclick
:
true
onclick
:
true
,
spinner
:
false
})
}).
catch
(
error
=>
{
let
response
=
error
.
response
.
data
;
// const { navigation } = this.props
...
...
@@ -142,7 +146,7 @@ class CardActivation extends React.Component {
Alert
.
alert
(
'Kami telah kembali mengirimkan sms otp ke nomor anda!'
);
this
.
setState
({
timer
:
3
timer
:
80
})
this
.
interval
=
setInterval
(
()
=>
this
.
setState
((
prevState
)
=>
({
timer
:
prevState
.
timer
-
1
})),
...
...
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