diff --git a/apps/app/components/cycles/delete-cycle-modal.tsx b/apps/app/components/cycles/delete-cycle-modal.tsx index 58b670f3a..f5f8513d6 100644 --- a/apps/app/components/cycles/delete-cycle-modal.tsx +++ b/apps/app/components/cycles/delete-cycle-modal.tsx @@ -117,8 +117,8 @@ export const DeleteCycleModal: React.FC = ({ handleClose(); setToastAlert({ - title: "Success", type: "success", + title: "Success", message: "Cycle deleted successfully", }); }) diff --git a/apps/app/components/cycles/modal.tsx b/apps/app/components/cycles/modal.tsx index cd439c372..38cf58ff7 100644 --- a/apps/app/components/cycles/modal.tsx +++ b/apps/app/components/cycles/modal.tsx @@ -62,8 +62,8 @@ export const CreateUpdateCycleModal: React.FC = ({ setToastAlert({ type: "success", - title: "Success!", - message: "Cycle created successfully.", + title: "Success", + message: "Cycle created successfully", }); }) .catch((err) => { @@ -115,8 +115,8 @@ export const CreateUpdateCycleModal: React.FC = ({ setToastAlert({ type: "success", - title: "Success!", - message: "Cycle updated successfully.", + title: "Success", + message: "Cycle updated successfully", }); }) .catch((err) => { diff --git a/apps/app/components/cycles/single-cycle-card.tsx b/apps/app/components/cycles/single-cycle-card.tsx index 5bd0115c3..88c5b84c7 100644 --- a/apps/app/components/cycles/single-cycle-card.tsx +++ b/apps/app/components/cycles/single-cycle-card.tsx @@ -219,9 +219,9 @@ export const SingleCycleCard: React.FC = ({ `${originURL}/${workspaceSlug}/projects/${projectId}/cycles/${cycle.id}` ).then(() => { setToastAlert({ - type: "success", - title: "Link Copied!", - message: "Cycle link copied to clipboard.", + type: "info", + title: "Link Copied Successfully", + iconType: "copy", }); }); }; @@ -282,7 +282,7 @@ export const SingleCycleCard: React.FC = ({ -
+
{cycle.owned_by.avatar && cycle.owned_by.avatar !== "" ? ( = ({ alt={cycle.owned_by.first_name} /> ) : ( - + {cycle.owned_by.first_name.charAt(0)} )} diff --git a/apps/app/components/modules/delete-module-modal.tsx b/apps/app/components/modules/delete-module-modal.tsx index f8d803732..9e5d2ac65 100644 --- a/apps/app/components/modules/delete-module-modal.tsx +++ b/apps/app/components/modules/delete-module-modal.tsx @@ -54,6 +54,11 @@ export const DeleteModuleModal: React.FC = ({ isOpen, setIsOpen, data }) .then(() => { if (moduleId) router.push(`/${workspaceSlug}/projects/${data.project}/modules`); handleClose(); + setToastAlert({ + type: "success", + title: "Success", + message: "Module deleted successfully", + }); }) .catch(() => { setToastAlert({ diff --git a/apps/app/components/modules/modal.tsx b/apps/app/components/modules/modal.tsx index 02e23e138..1f11d0d02 100644 --- a/apps/app/components/modules/modal.tsx +++ b/apps/app/components/modules/modal.tsx @@ -57,8 +57,8 @@ export const CreateUpdateModuleModal: React.FC = ({ isOpen, setIsOpen, da setToastAlert({ type: "success", - title: "Success!", - message: "Module created successfully.", + title: "Success", + message: "Module created successfully", }); }) .catch(() => { @@ -88,8 +88,8 @@ export const CreateUpdateModuleModal: React.FC = ({ isOpen, setIsOpen, da setToastAlert({ type: "success", - title: "Success!", - message: "Module updated successfully.", + title: "Success", + message: "Module updated successfully", }); }) .catch(() => { diff --git a/apps/app/components/modules/single-module-card.tsx b/apps/app/components/modules/single-module-card.tsx index 030f51c0d..253fe53ca 100644 --- a/apps/app/components/modules/single-module-card.tsx +++ b/apps/app/components/modules/single-module-card.tsx @@ -104,9 +104,9 @@ export const SingleModuleCard: React.FC = ({ module, handleEditModule }) `${originURL}/${workspaceSlug}/projects/${projectId}/modules/${module.id}` ).then(() => { setToastAlert({ - type: "success", - title: "Link Copied!", - message: "Module link copied to clipboard.", + type: "info", + title: "Link Copied Successfully", + iconType: "copy", }); }); };