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
7365e5fe
Commit
7365e5fe
authored
Jun 03, 2020
by
Trisno
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
benerin bug di method balance + points
parent
1ec20d07
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
RedeemCode.js
view/RedeemCode.js
+3
-2
UseBalance.js
view/UseBalance.js
+1
-1
No files found.
view/RedeemCode.js
View file @
7365e5fe
import
React
from
'react'
;
import
React
from
'react'
;
import
{
View
,
Text
,
TextInput
,
StyleSheet
,
Button
,
TouchableOpacity
,
Alert
,
BackHandler
}
from
'react-native'
;
import
{
View
,
Text
,
TextInput
,
StyleSheet
,
Button
,
TouchableOpacity
,
Alert
,
BackHandler
,
ToastAndroid
}
from
'react-native'
;
import
{
connect
}
from
'react-redux'
;
import
{
connect
}
from
'react-redux'
;
import
Axios
from
'axios'
;
import
Axios
from
'axios'
;
import
ActionType
from
'../redux/globalActionType'
;
import
ActionType
from
'../redux/globalActionType'
;
...
@@ -46,7 +46,8 @@ class RedeemCode extends React.Component {
...
@@ -46,7 +46,8 @@ class RedeemCode extends React.Component {
this
.
props
.
setRedeem
(
redeemProps
)
this
.
props
.
setRedeem
(
redeemProps
)
Alert
.
alert
(
''
,
'Berhasil dibatalkan'
)
// Alert.alert('', 'Berhasil dibatalkan')
ToastAndroid
.
show
(
"berhasil dibatalkan"
,
ToastAndroid
.
SHORT
)
this
.
props
.
navigation
.
navigate
(
'Home'
,
{
screen
:
'HOME'
});
this
.
props
.
navigation
.
navigate
(
'Home'
,
{
screen
:
'HOME'
});
}).
catch
(
error
=>
{
}).
catch
(
error
=>
{
let
response
=
error
.
response
.
data
let
response
=
error
.
response
.
data
...
...
view/UseBalance.js
View file @
7365e5fe
...
@@ -236,7 +236,7 @@ class UseBalance extends React.Component {
...
@@ -236,7 +236,7 @@ class UseBalance extends React.Component {
session_id
:
this
.
props
.
session_id
,
session_id
:
this
.
props
.
session_id
,
pin
:
this
.
state
.
pin
,
pin
:
this
.
state
.
pin
,
balance
:
0
,
balance
:
0
,
point
:
this
.
state
.
kasproPoint
point
:
this
.
state
.
input_redeem
}
}
console
.
log
(
params
)
console
.
log
(
params
)
...
...
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