diff --git a/frontend/src/components/MainForm.tsx b/frontend/src/components/MainForm.tsx index e33856e..0a8d80e 100644 --- a/frontend/src/components/MainForm.tsx +++ b/frontend/src/components/MainForm.tsx @@ -8,8 +8,6 @@ const handleSubmit = async (event: React.FormEvent) => { const data = Object.fromEntries(formData.entries()); toast.promise(registerLos(data), { pending: "Registriere Los...", - success: "Los erfolgreich registriert!", - error: "Fehler bei der Registrierung des Loses.", }); }; diff --git a/frontend/src/layout/Layout.tsx b/frontend/src/layout/Layout.tsx index 1414fe9..6f20ddc 100644 --- a/frontend/src/layout/Layout.tsx +++ b/frontend/src/layout/Layout.tsx @@ -13,7 +13,18 @@ const Layout: React.FC = ({ children }) => {
{children}
- + ); }; diff --git a/frontend/src/utils/register.ts b/frontend/src/utils/register.ts index 82e7e25..ad91110 100644 --- a/frontend/src/utils/register.ts +++ b/frontend/src/utils/register.ts @@ -11,7 +11,7 @@ export const registerLos = async (data: any) => { if (response.ok) { myToast("Los erfolgreich registriert!", "success"); } else { - myToast("Fehler bei der Registrierung des Loses.", "error"); + myToast("Fehler bei der Registrierung des Loses!", "error"); } }); }; diff --git a/frontend/src/utils/toastify.ts b/frontend/src/utils/toastify.ts index 3607ed8..9233749 100644 --- a/frontend/src/utils/toastify.ts +++ b/frontend/src/utils/toastify.ts @@ -11,7 +11,7 @@ export const myToast = (message: string, msgType: ToastType) => { pauseOnHover: true, draggable: true, progress: undefined, - theme: "dark", + theme: "light", }; toast[msgType](message, config); };