+
-
+
-
+
-
+
- {/* Add the new fields here */}
-
+ {/* Add the new fields here */}
+
-
+
-
+
-
@@ -120,9 +126,10 @@ const PersonalInfosForm: React.FC
= ({
diff --git a/apps/web/src/app/signup/page.tsx b/apps/web/src/app/signup/page.tsx
index 3fee5251..c62a529b 100644
--- a/apps/web/src/app/signup/page.tsx
+++ b/apps/web/src/app/signup/page.tsx
@@ -85,6 +85,7 @@ const SignUpPage: React.FC = () => {
)}
{step === 2 && (
diff --git a/apps/web/src/hooks/useSignUp.ts b/apps/web/src/hooks/useSignUp.ts
index a81f25be..bd8f3730 100644
--- a/apps/web/src/hooks/useSignUp.ts
+++ b/apps/web/src/hooks/useSignUp.ts
@@ -1,5 +1,4 @@
import { api } from '@/api';
-import { errorToast } from '@/lib/toasts';
import { useMutation, UseMutationOptions } from '@tanstack/react-query';
import { AxiosResponse } from 'axios';
@@ -13,7 +12,7 @@ export const useSignup = (
...options,
- onError: (error) => errorToast(error.message),
+ onError: (error) => {},
});
return {
diff --git a/apps/web/src/lib/toasts.ts b/apps/web/src/lib/toasts.ts
deleted file mode 100644
index 23e28c8e..00000000
--- a/apps/web/src/lib/toasts.ts
+++ /dev/null
@@ -1,57 +0,0 @@
-import { toast } from 'react-toastify';
-
-export const putNotification = (title: string, body: string) => {
- new window.Notification(title, { body: body });
-};
-
-export const errorToast = (errorMessage: string) => {
- toast.error(errorMessage, {
- position: 'top-right',
- autoClose: 5000,
- hideProgressBar: false,
- closeOnClick: true,
- pauseOnHover: true,
- draggable: true,
- progress: undefined,
- theme: 'light',
- });
-};
-
-export const successToast = (message: string) => {
- toast.success(message, {
- position: 'top-right',
- autoClose: 5000,
- hideProgressBar: false,
- closeOnClick: true,
- pauseOnHover: true,
- draggable: true,
- progress: undefined,
- theme: 'light',
- });
-};
-
-export const infoToast = (message: string) => {
- toast.info(message, {
- position: 'top-right',
- autoClose: 5000,
- hideProgressBar: false,
- closeOnClick: true,
- pauseOnHover: true,
- draggable: true,
- progress: undefined,
- theme: 'light',
- });
-};
-
-export const warningToast = (message: string) => {
- toast.warning(message, {
- position: 'top-right',
- autoClose: 5000,
- hideProgressBar: false,
- closeOnClick: true,
- pauseOnHover: true,
- draggable: true,
- progress: undefined,
- theme: 'light',
- });
-};