mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-10 19:56:54 +03:00
Add show and hide action creators and action types
This commit is contained in:
parent
56b1c5a360
commit
0d7142e2d2
|
@ -5,7 +5,9 @@ const ActionTypes = {
|
|||
COMMIT: 'COMMIT',
|
||||
SWEEP: 'SWEEP',
|
||||
TOGGLE_ACTION: 'TOGGLE_ACTION',
|
||||
JUMP_TO_STATE: 'JUMP_TO_STATE'
|
||||
JUMP_TO_STATE: 'JUMP_TO_STATE',
|
||||
HIDE: 'HIDE',
|
||||
SHOW: 'SHOW'
|
||||
};
|
||||
|
||||
const INIT_ACTION = {
|
||||
|
@ -204,6 +206,12 @@ export const ActionCreators = {
|
|||
sweep() {
|
||||
return { type: ActionTypes.SWEEP };
|
||||
},
|
||||
show() {
|
||||
return { type: ActionTypes.SHOW }
|
||||
},
|
||||
hide() {
|
||||
return { type: ActionTypes.HIDE }
|
||||
},
|
||||
toggleAction(index) {
|
||||
return { type: ActionTypes.TOGGLE_ACTION, index };
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue
Block a user