verdnatura-chat/app/actions/sortPreferences.js

16 lines
271 B
JavaScript
Raw Permalink Normal View History

import * as types from './actionsTypes';
export function setAllPreferences(preferences) {
return {
type: types.SORT_PREFERENCES.SET_ALL,
preferences
};
}
export function setPreference(preference) {
return {
type: types.SORT_PREFERENCES.SET,
preference
};
}