mirror of
https://gitlab.com/ceda_ei/sonzai.git
synced 2025-11-04 17:10:05 +01:00
Redo HomeScreen with DataTable. Add Remove in Dialog. Add remove reducer
This commit is contained in:
@@ -22,6 +22,8 @@ export default function timetable(state, action) {
|
||||
}],
|
||||
...(state.slice(action.day + 1))
|
||||
];
|
||||
case "REMOVE_TIMETABLE_ENTRY":
|
||||
return state.map(i => i.filter(j => j.id !== action.id));
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user