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

TO DO API BASE_URL REDUX

parent 690dcf3c
......@@ -42,7 +42,8 @@ const ActionType = {
SET_HOME_ADDRESS:'SET_HOME_ADDRESS',
SET_REEDEM :'SET_REEDEM',
REMOVE_VOUCHER : 'REMOVE_VOUCHER',
SET_CHANGE_RESET_PASSWORD : 'SET_CHANGE_RESET_PASSWORD'
SET_CHANGE_RESET_PASSWORD : 'SET_CHANGE_RESET_PASSWORD',
SET_BASE_URL :'SET_BASE_URL'
}
export default ActionType;
\ No newline at end of file
......@@ -88,7 +88,8 @@ const globalState = {
home_address: '',
outlet_detailadress: '',
isSubmitResetPassword: false
isSubmitResetPassword: false,
BASE_URL:'https://excelsocrm.ravintoladev.com/'
}
......@@ -217,6 +218,12 @@ const rootReducer = (state = globalState, action) => {
email: action.data.email,
}
}
case ActionType.SET_BASE_URL: {
return {
...state,
BASE_URL: action.data.BASE_URL,
}
}
case ActionType.SET_CHANGE_URI_SELFI: {
return {
...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