2020-03-16 15:50:48 +01:00
|
|
|
export function addSubject(subject) {
|
|
|
|
return {
|
|
|
|
type: "ADD_SUBJECT",
|
|
|
|
subject: subject
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export function removeSubject(id) {
|
|
|
|
return {
|
|
|
|
type: "REMOVE_SUBJECT",
|
|
|
|
id: id
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2020-03-17 14:55:03 +01:00
|
|
|
|
|
|
|
export function setTheme(theme) {
|
|
|
|
return {
|
|
|
|
type: "SET_THEME",
|
|
|
|
theme: theme,
|
|
|
|
};
|
|
|
|
}
|
2020-03-20 10:55:06 +01:00
|
|
|
|
|
|
|
|
|
|
|
export function addTimetableEntry(day, entry) {
|
|
|
|
return {
|
|
|
|
type: "ADD_TIMETABLE_ENTRY",
|
|
|
|
day,
|
|
|
|
entry,
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export function removeTimetableEntry(id) {
|
|
|
|
return {
|
|
|
|
type: "REMOVE_TIMETABLE_ENTRY",
|
|
|
|
id: id
|
|
|
|
};
|
|
|
|
}
|