diff --git a/frontend/src/features/projects/components/CreateProjectModal.tsx b/frontend/src/features/projects/components/CreateProjectModal.tsx index 266d4b9..30811d5 100644 --- a/frontend/src/features/projects/components/CreateProjectModal.tsx +++ b/frontend/src/features/projects/components/CreateProjectModal.tsx @@ -22,7 +22,6 @@ export const CreateProjectModal = ({ isOpen, onClose }: CreateProjectModalProps) const onSubmit = () => { close(); toast.success("Project created successfully"); - //toast.custom(t => ); }; const { formik } = useCreateProject({ onSubmit: onSubmit }); diff --git a/frontend/src/features/projects/hooks/useProjectSettings.ts b/frontend/src/features/projects/hooks/useProjectSettings.ts index 8caa288..a2acd54 100644 --- a/frontend/src/features/projects/hooks/useProjectSettings.ts +++ b/frontend/src/features/projects/hooks/useProjectSettings.ts @@ -3,6 +3,7 @@ import { useFormik } from 'formik'; import { useEffect, useState } from 'react'; import { useProjectsStore } from '../stores/useProjectsStore'; import { useNavigate } from 'react-router'; +import toast from 'react-hot-toast'; interface FormValues { @@ -45,7 +46,7 @@ const useSettings = ({ projectName: initialProjectName}: FormValues) => { onDelete?.(); navigate('/flows'); } catch (error) { - //TODO: Toast + toast.error("An error occurred when trying to delete this project"); setErrors(['An error occurred']); } finally { setLoading(false);