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
974dfc5f
Commit
974dfc5f
authored
Jun 29, 2020
by
Wahyu Adjie Prasetyo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
w
parent
5615f2d3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
11 deletions
+34
-11
globalActionType.js
redux/globalActionType.js
+3
-1
globalReducer.js
redux/globalReducer.js
+31
-10
No files found.
redux/globalActionType.js
View file @
974dfc5f
...
...
@@ -48,7 +48,9 @@ const ActionType = {
SET_PICKIMAGE
:
'SET_PICKIMAGE'
,
//set account number
SET_ACCOUNT_NUMBER
:
'SET_ACCOUNT_NUMBER'
SET_ACCOUNT_NUMBER
:
'SET_ACCOUNT_NUMBER'
,
SET_MEMBER
:
'SET_MEMBER'
,
SET_INBOX
:
'SET_INBOX'
,
}
export
default
ActionType
;
\ No newline at end of file
redux/globalReducer.js
View file @
974dfc5f
...
...
@@ -73,7 +73,7 @@ const globalState = {
grabdropoff
:
''
,
grabdestination
:
''
,
notes
:
''
,
notes
:
''
,
balanceUsed
:
''
,
pointused
:
''
,
...
...
@@ -91,9 +91,15 @@ const globalState = {
isSubmitResetPassword
:
false
,
setpickimageSelfie
:
true
,
card_number
:
""
,
card_number
:
""
,
BASE_URL
:
'https://excelsocrm.ravintoladev.com/'
BASE_URL
:
'https://excelsocrm.ravintoladev.com/'
,
kaspro_account_number
:
''
,
is_expired_date
:
true
,
old_balance_claimed
:
true
,
set_inbox
:
''
}
...
...
@@ -113,6 +119,12 @@ const rootReducer = (state = globalState, action) => {
isEmailverif
:
action
.
data
.
isEmailverif
,
}
}
case
ActionType
.
SET_INBOX
:
{
return
{
...
state
,
set_inbox
:
action
.
data
.
set_inbox
,
}
}
case
ActionType
.
SET_CHANGE_RESET_PASSWORD
:
{
return
{
...
state
,
...
...
@@ -299,6 +311,15 @@ const rootReducer = (state = globalState, action) => {
}
}
case
ActionType
.
SET_MEMBER
:
{
return
{
...
state
,
kaspro_account_number
:
action
.
data
.
kaspro_account_number
,
is_expired_date
:
action
.
data
.
is_expired_date
,
old_balance_claimed
:
action
.
data
.
old_balance_claimed
,
}
}
case
ActionType
.
SET_CORDINAT
:
{
return
{
...
state
,
...
...
@@ -589,9 +610,9 @@ const rootReducer = (state = globalState, action) => {
return
{
...
state
,
in_payment
:
action
.
data
.
in_payment
,
redeem_code
:
action
.
data
.
redeem_code
,
balance_redeem
:
action
.
data
.
balance_redeem
,
point_redeem
:
action
.
data
.
point_redeem
redeem_code
:
action
.
data
.
redeem_code
,
balance_redeem
:
action
.
data
.
balance_redeem
,
point_redeem
:
action
.
data
.
point_redeem
}
}
...
...
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