mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-28 04:23:56 +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',
|
COMMIT: 'COMMIT',
|
||||||
SWEEP: 'SWEEP',
|
SWEEP: 'SWEEP',
|
||||||
TOGGLE_ACTION: 'TOGGLE_ACTION',
|
TOGGLE_ACTION: 'TOGGLE_ACTION',
|
||||||
JUMP_TO_STATE: 'JUMP_TO_STATE'
|
JUMP_TO_STATE: 'JUMP_TO_STATE',
|
||||||
|
HIDE: 'HIDE',
|
||||||
|
SHOW: 'SHOW'
|
||||||
};
|
};
|
||||||
|
|
||||||
const INIT_ACTION = {
|
const INIT_ACTION = {
|
||||||
|
@ -204,6 +206,12 @@ export const ActionCreators = {
|
||||||
sweep() {
|
sweep() {
|
||||||
return { type: ActionTypes.SWEEP };
|
return { type: ActionTypes.SWEEP };
|
||||||
},
|
},
|
||||||
|
show() {
|
||||||
|
return { type: ActionTypes.SHOW }
|
||||||
|
},
|
||||||
|
hide() {
|
||||||
|
return { type: ActionTypes.HIDE }
|
||||||
|
},
|
||||||
toggleAction(index) {
|
toggleAction(index) {
|
||||||
return { type: ActionTypes.TOGGLE_ACTION, index };
|
return { type: ActionTypes.TOGGLE_ACTION, index };
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user