diff --git a/apps/app/components/toast-alert/index.tsx b/apps/app/components/toast-alert/index.tsx index 5d0c0123c..e8f57f6ab 100644 --- a/apps/app/components/toast-alert/index.tsx +++ b/apps/app/components/toast-alert/index.tsx @@ -1,14 +1,9 @@ import React from "react"; // hooks -import { - CheckCircleIcon, - ExclamationTriangleIcon, - InformationCircleIcon, - XCircleIcon, - XMarkIcon, -} from "@heroicons/react/24/outline"; import useToast from "hooks/use-toast"; // icons +import { LinkIcon, XMarkIcon } from "@heroicons/react/24/outline"; +import { ErrorIcon, SuccessIcon } from "components/icons"; const ToastAlerts = () => { const { alerts, removeAlert } = useToast(); @@ -16,48 +11,60 @@ const ToastAlerts = () => { if (!alerts) return null; return ( -
+
{alerts.map((alert) => ( -
+
-
-
-
+ {alert.type !== "info" ? ( + <> +
{alert.type === "success" ? ( -
-
-

{alert.title}

- {alert.message &&

{alert.message}

} +
+

{alert.message}

+ + ) : ( +
+ {alert.iconType === "copy" && ( + + + + )} +

{alert.title}

-
+ )}
))}