Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
N
new_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
new_excelso
Commits
ecba52db
Commit
ecba52db
authored
Jun 16, 2020
by
Wahyu Adjie Prasetyo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TO DO API BASE_URL REDUX
parent
690dcf3c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
globalActionType.js
redux/globalActionType.js
+2
-1
globalReducer.js
redux/globalReducer.js
+8
-1
No files found.
redux/globalActionType.js
View file @
ecba52db
...
...
@@ -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
redux/globalReducer.js
View file @
ecba52db
...
...
@@ -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
,
...
...
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