Commit afe77d64 authored by Wahyu Adjie Prasetyo's avatar Wahyu Adjie Prasetyo

nambah redux card _account number

parent 70615354
...@@ -45,7 +45,10 @@ const ActionType = { ...@@ -45,7 +45,10 @@ const ActionType = {
SET_CHANGE_RESET_PASSWORD : 'SET_CHANGE_RESET_PASSWORD', SET_CHANGE_RESET_PASSWORD : 'SET_CHANGE_RESET_PASSWORD',
//set url //set url
SET_BASE_URL :'SET_BASE_URL', SET_BASE_URL :'SET_BASE_URL',
SET_PICKIMAGE:'SET_PICKIMAGE' SET_PICKIMAGE:'SET_PICKIMAGE',
//set account number
SET_ACCOUNT_NUMBER:'SET_ACCOUNT_NUMBER'
} }
export default ActionType; export default ActionType;
\ No newline at end of file
...@@ -90,6 +90,8 @@ const globalState = { ...@@ -90,6 +90,8 @@ const globalState = {
isSubmitResetPassword: false, isSubmitResetPassword: false,
setpickimageSelfie: true, setpickimageSelfie: true,
card_number:"",
BASE_URL:'https://excelsocrm.ravintoladev.com/' BASE_URL:'https://excelsocrm.ravintoladev.com/'
...@@ -290,6 +292,13 @@ const rootReducer = (state = globalState, action) => { ...@@ -290,6 +292,13 @@ const rootReducer = (state = globalState, action) => {
} }
} }
case ActionType.SET_ACCOUNT_NUMBER: {
return {
...state,
card_number: action.data.card_number
}
}
case ActionType.SET_CORDINAT: { case ActionType.SET_CORDINAT: {
return { return {
...state, ...state,
......
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