diff --git a/src/actions/actions.js b/src/actions/actions.js new file mode 100644 index 0000000..bdbd077 --- /dev/null +++ b/src/actions/actions.js @@ -0,0 +1,23 @@ +import uuid from 'uuid/v1'; + +const defaultState = []; + +export const createCategory = category => { + return { + type: 'CATEGORY_CREATE', + payload: category, + } +} + +export const updateCategory = category => { + return { + type: 'CATEGORY_UPDATE', + payload: category, + } +} + +export const destroyCategory = category => { + return { + type: 'CATEGORY_DESTROY', + } +} \ No newline at end of file