web client v0.2 (add restaurant OK, settings OK)
This commit is contained in:
@@ -10,10 +10,30 @@ export const hideDishes = () => {
|
||||
};
|
||||
};
|
||||
|
||||
export const setLoggedIn = (username, jwt, id, email) => {
|
||||
export const setLoggedIn = (
|
||||
firstname,
|
||||
lastname,
|
||||
jwt,
|
||||
userId,
|
||||
email,
|
||||
NIP,
|
||||
adress,
|
||||
companyName,
|
||||
restaurants
|
||||
) => {
|
||||
return {
|
||||
type: "SET_LOGGEDIN",
|
||||
payload: { username: username, jwt: jwt, id: id, email: email },
|
||||
payload: {
|
||||
firstname: firstname,
|
||||
lastname: lastname,
|
||||
jwt: jwt,
|
||||
userId: userId,
|
||||
email: email,
|
||||
NIP: NIP,
|
||||
adress: adress,
|
||||
companyName: companyName,
|
||||
restaurants: restaurants,
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user