Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
C
clone_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
clone_excelso
Commits
afe77d64
Commit
afe77d64
authored
Jun 25, 2020
by
Wahyu Adjie Prasetyo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nambah redux card _account number
parent
70615354
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
globalActionType.js
redux/globalActionType.js
+4
-1
globalReducer.js
redux/globalReducer.js
+9
-0
No files found.
redux/globalActionType.js
View file @
afe77d64
...
@@ -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
redux/globalReducer.js
View file @
afe77d64
...
@@ -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
,
...
...
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