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

w

parent 5615f2d3
...@@ -48,7 +48,9 @@ const ActionType = { ...@@ -48,7 +48,9 @@ const ActionType = {
SET_PICKIMAGE:'SET_PICKIMAGE', SET_PICKIMAGE:'SET_PICKIMAGE',
//set account number //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; export default ActionType;
\ No newline at end of file
...@@ -73,7 +73,7 @@ const globalState = { ...@@ -73,7 +73,7 @@ const globalState = {
grabdropoff: '', grabdropoff: '',
grabdestination: '', grabdestination: '',
notes:'', notes: '',
balanceUsed: '', balanceUsed: '',
pointused: '', pointused: '',
...@@ -91,9 +91,15 @@ const globalState = { ...@@ -91,9 +91,15 @@ const globalState = {
isSubmitResetPassword: false, isSubmitResetPassword: false,
setpickimageSelfie: true, 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) => { ...@@ -113,6 +119,12 @@ const rootReducer = (state = globalState, action) => {
isEmailverif: action.data.isEmailverif, isEmailverif: action.data.isEmailverif,
} }
} }
case ActionType.SET_INBOX: {
return {
...state,
set_inbox: action.data.set_inbox,
}
}
case ActionType.SET_CHANGE_RESET_PASSWORD: { case ActionType.SET_CHANGE_RESET_PASSWORD: {
return { return {
...state, ...state,
...@@ -209,7 +221,7 @@ const rootReducer = (state = globalState, action) => { ...@@ -209,7 +221,7 @@ const rootReducer = (state = globalState, action) => {
email: action.data.email, email: action.data.email,
} }
} }
case ActionType.SET_PROSES: { case ActionType.SET_PROSES: {
return { return {
...state, ...state,
...@@ -299,6 +311,15 @@ const rootReducer = (state = globalState, action) => { ...@@ -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: { case ActionType.SET_CORDINAT: {
return { return {
...state, ...state,
...@@ -588,10 +609,10 @@ const rootReducer = (state = globalState, action) => { ...@@ -588,10 +609,10 @@ const rootReducer = (state = globalState, action) => {
case ActionType.SET_REEDEM: { case ActionType.SET_REEDEM: {
return { return {
...state, ...state,
in_payment: action.data.in_payment, in_payment: action.data.in_payment,
redeem_code :action.data.redeem_code, redeem_code: action.data.redeem_code,
balance_redeem : action.data.balance_redeem, balance_redeem: action.data.balance_redeem,
point_redeem:action.data.point_redeem point_redeem: action.data.point_redeem
} }
} }
...@@ -775,7 +796,7 @@ const rootReducer = (state = globalState, action) => { ...@@ -775,7 +796,7 @@ const rootReducer = (state = globalState, action) => {
// Update menu list pakai cara 2 // Update menu list pakai cara 2
updated_menu = state.menu_item updated_menu = state.menu_item
// dicari dulu index keberapa yg mau diupdate notenya // dicari dulu index keberapa yg mau diupdate notenya
update_index = state.menu_item.findIndex((obj => obj.id == update.id)); update_index = state.menu_item.findIndex((obj => obj.id == update.id));
......
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