woocommerce/plugins/woocommerce-admin/client/store/notes/actions.js

18 lines
236 B
JavaScript
Raw Normal View History

2018-10-11 23:33:18 +00:00
/** @format */
2018-10-12 19:20:48 +00:00
export default {
2018-10-16 19:46:00 +00:00
setNotes( notes, query ) {
2018-10-12 19:20:48 +00:00
return {
type: 'SET_NOTES',
notes,
2018-10-16 19:46:00 +00:00
query: query || {},
};
},
setNotesError( query ) {
return {
type: 'SET_NOTES_ERROR',
query: query || {},
2018-10-12 19:20:48 +00:00
};
},
};