Commit 974dfc5f authored by Wahyu Adjie Prasetyo's avatar Wahyu Adjie Prasetyo

w

parent 5615f2d3
......@@ -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
......@@ -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
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment