From 23e1b04c2c54896f7aa3c252a68de4cc6ff7978b Mon Sep 17 00:00:00 2001 From: Alejandra <90076947+alejsdev@users.noreply.github.com> Date: Mon, 20 May 2024 13:52:03 -0500 Subject: [PATCH] =?UTF-8?q?=E2=9C=8F=EF=B8=8F=20Update=20toast=20message?= =?UTF-8?q?=20for=20successful=20invitation=20sending=20(#70)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/Invitations/NewInvitation.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/Invitations/NewInvitation.tsx b/frontend/src/components/Invitations/NewInvitation.tsx index 37cdb38293..174d02b166 100644 --- a/frontend/src/components/Invitations/NewInvitation.tsx +++ b/frontend/src/components/Invitations/NewInvitation.tsx @@ -9,8 +9,8 @@ import { Text, } from "@chakra-ui/react" import { useMutation, useQueryClient } from "@tanstack/react-query" - import { type SubmitHandler, useForm } from "react-hook-form" + import { type ApiError, type InvitationCreate, @@ -36,7 +36,7 @@ const NewInvitation = () => { mutationFn: (data: InvitationCreate) => InvitationsService.createInvitation({ requestBody: data }), onSuccess: () => { - showToast("Success!", "Invitation created successfully.", "success") + showToast("Success!", "Invitation sent successfully.", "success") reset() }, onError: (err: ApiError) => {