From 9fdc1d4825698ccd4ccd6601b919730cb9fcbeaf Mon Sep 17 00:00:00 2001 From: Robinson-Taiwo Date: Sat, 24 Aug 2024 00:13:25 +0100 Subject: [PATCH 1/2] Fix: modified ui for successful invite feedback --- src/components/common/modals/invite-member/index.tsx | 9 +++++---- src/components/ui/toast.tsx | 10 ++++++---- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/src/components/common/modals/invite-member/index.tsx b/src/components/common/modals/invite-member/index.tsx index ce0f294af..62a2da06e 100644 --- a/src/components/common/modals/invite-member/index.tsx +++ b/src/components/common/modals/invite-member/index.tsx @@ -82,9 +82,9 @@ const InviteMemberModal: React.FC = ({ show, onClose }) => { setError(response.error); } else { toast({ - title: "Success", - description: "Your invite has been sent successfully to members' email", - variant: "default", + // title: "Success", + description: "1 Invite sent successfully.", + variant: "success", }); setEmails(""); onClose(); @@ -113,8 +113,9 @@ const InviteMemberModal: React.FC = ({ show, onClose }) => { if (document.hasFocus()) { await navigator.clipboard.writeText(inviteLinkData); toast({ - title: "Invite Link", + title: "", description: "Invite link copied to clipboard!", + variant: "success", }); } else { setError("Failed to copy invite link. Please manually copy it."); diff --git a/src/components/ui/toast.tsx b/src/components/ui/toast.tsx index 72e4f69ed..5d18a7b51 100644 --- a/src/components/ui/toast.tsx +++ b/src/components/ui/toast.tsx @@ -16,7 +16,7 @@ const ToastViewport = React.forwardRef< - + )); ToastClose.displayName = ToastPrimitives.Close.displayName; From 14eecda24e3dcc10f72640890125ae0e414495f3 Mon Sep 17 00:00:00 2001 From: Robinson-Taiwo Date: Sat, 24 Aug 2024 16:16:35 +0100 Subject: [PATCH 2/2] Chore: remove unnecessary comment --- src/components/common/modals/invite-member/index.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/components/common/modals/invite-member/index.tsx b/src/components/common/modals/invite-member/index.tsx index 38b266e6d..d048e4ecf 100644 --- a/src/components/common/modals/invite-member/index.tsx +++ b/src/components/common/modals/invite-member/index.tsx @@ -82,7 +82,6 @@ const InviteMemberModal: React.FC = ({ show, onClose }) => { setError(response.error); } else { toast({ - // title: "Success", description: "1 Invite sent successfully.", variant: "success", }); @@ -113,7 +112,6 @@ const InviteMemberModal: React.FC = ({ show, onClose }) => { if (document.hasFocus()) { await navigator.clipboard.writeText(inviteLinkData); toast({ - title: "", description: "Invite link copied to clipboard!", variant: "success", });