UI Mechanics / New Look (orange - gray)
This commit is contained in:
@@ -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());
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user