web client v0.5

//notifications
//delete restaurant
//change picture
//redesigned data store
This commit is contained in:
2020-09-27 18:40:39 +02:00
parent 3fdc93ef28
commit d2842a1db3
24 changed files with 810 additions and 501 deletions

View File

@@ -43,52 +43,6 @@ export const setLoggedOut = () => {
};
};
export const showRegisterCircle = () => {
return {
type: "DIALOG_REGISTER_CIRCLE_SHOW",
};
};
export const hideRegisterCircle = () => {
return {
type: "DIALOG_REGISTER_CIRCLE_HIDE",
};
};
export const hideRegisterForm = () => {
return {
type: "DIALOG_REGISTER_FORM_HIDE",
};
};
export const setRegisterResult = (text) => {
return {
type: "DIALOG_REGISTER_SET_RESULT",
payload: text,
};
};
export const setLoginResult = (text) => {
return {
type: "DIALOG_LOGIN_SET_RESULT",
payload: text,
};
};
export const setReminderResult = (text) => {
return {
type: "DIALOG_REMINDER_SET_RESULT",
payload: text,
};
};
export const setResetResult = (text) => {
return {
type: "DIALOG_RESET_SET_RESULT",
payload: text,
};
};
export const hideRegulamin = () => {
return {
type: "DIALOG_REGULAMIN_HIDE",
@@ -101,26 +55,31 @@ export const showRegulamin = () => {
};
};
export const showReminderCircle = () => {
export const enqueueSnackbar = (notification) => {
const key = notification.options && notification.options.key;
return {
type: "DIALOG_REMINDER_CIRCLE_SHOW",
type: "ENQUEUE_SNACKBAR",
notification: {
...notification,
key: key || new Date().getTime() + Math.random(),
},
};
};
export const hideReminderCircle = () => {
export const removeSnackbar = (key) => ({
type: "REMOVE_SNACKBAR",
key,
});
export const showBackdrop = () => {
return {
type: "DIALOG_REMINDER_CIRCLE_HIDE",
type: "SHOW_BACKDROP",
};
};
export const showResetCircle = () => {
export const hideBackdrop = () => {
return {
type: "DIALOG_RESET_CIRCLE_SHOW",
};
};
export const hideResetCircle = () => {
return {
type: "DIALOG_RESET_CIRCLE_HIDE",
type: "HIDE_BACKDROP",
};
};