1
0
mirror of https://gitlab.com/ceda_ei/sonzai.git synced 2025-07-15 19:26:54 +02:00
sonzai/actions.js
Ceda EI 0103e6abff Add Theme Picker.
Moved Provider into App.js. Add AppContainer to store theme in redux
store. Add reducers and actions for theme, SET_THEME.
2020-03-17 19:25:03 +05:30

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,
};
}