sonzai/actions.js

23 lines
274 B
JavaScript

export function addSubject(subject) {
return {
type: "ADD_SUBJECT",
subject: subject
};
}
export function removeSubject(id) {
return {
type: "REMOVE_SUBJECT",
id: id
};
}
export function setTheme(theme) {
return {
type: "SET_THEME",
theme: theme,
};
}