editorial workflow HoC

This commit is contained in:
Cássio Zen
2016-09-08 16:18:38 -03:00
parent 90d4b39fc1
commit 04c50d8def
6 changed files with 97 additions and 9 deletions

View File

@ -3,6 +3,7 @@ import { EDITORIAL_WORKFLOW } from '../constants/publishModes';
/*
* Contant Declarations
*/
export const INIT = 'init';
export const UNPUBLISHED_ENTRIES_REQUEST = 'UNPUBLISHED_ENTRIES_REQUEST';
export const UNPUBLISHED_ENTRIES_SUCCESS = 'UNPUBLISHED_ENTRIES_SUCCESS';
export const UNPUBLISHED_ENTRIES_FAILURE = 'UNPUBLISHED_ENTRIES_FAILURE';
@ -35,6 +36,16 @@ function unpublishedEntriesFailed(error) {
};
}
/*
* Exported simple Action Creators
*/
export function init() {
return {
type: INIT
};
}
/*
* Exported Thunk Action Creators
*/