web client v0.2 (add restaurant OK, settings OK)

This commit is contained in:
2020-09-19 18:16:26 +02:00
parent 732ad74657
commit 68ecf13aa1
16 changed files with 546 additions and 86 deletions

View File

@@ -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,
},
};
};