Add show and hide action creators and action types

This commit is contained in:
Patrick Burtchaell 2015-07-19 10:21:04 -05:00
parent 56b1c5a360
commit 0d7142e2d2

View File

@ -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 };
},