UI Mechanics / New Look (orange - gray)

This commit is contained in:
2020-08-01 17:11:43 +02:00
parent bf609fc5cd
commit e5a68f4b85
32 changed files with 766 additions and 118 deletions

View File

@@ -108,3 +108,16 @@ export const fetchAllDishes = (id) => {
});
};
};
export const tryLogin = (username) => {
return function (dispatch) {
dispatch(toggles.setLoggedIn(username));
dispatch(toggles.hideLoginDialog());
};
};
export const logout = () => {
return function (dispatch) {
dispatch(toggles.setLoggedOut());
};
};