mirror of
https://gitlab.com/ceda_ei/sonzai.git
synced 2025-07-15 19:26:54 +02:00
Moved Provider into App.js. Add AppContainer to store theme in redux store. Add reducers and actions for theme, SET_THEME.
23 lines
274 B
JavaScript
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,
|
|
};
|
|
}
|