1
0
mirror of https://gitlab.com/ceda_ei/sonzai.git synced 2025-10-28 13:40:07 +01:00
Files
sonzai/actions.js

40 lines
491 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,
};
}
export function addTimetableEntry(day, entry) {
return {
type: "ADD_TIMETABLE_ENTRY",
day,
entry,
};
}
export function removeTimetableEntry(id) {
return {
type: "REMOVE_TIMETABLE_ENTRY",
id: id
};
}