Refactored remaining requests

This commit is contained in:
Alex Holliday committed 2024-08-18 17:18:16 -07:00
1 parent f78e5ca94c
commit 92877e20ec
10 files changed
+174 -66

No files matched your search

@@ -176,13 +176,10 @@ const TeamPanel = () => {
setErrors((prev) => ({ ...prev, email: error.details[0].message }));
} else
try {
await axiosInstance.post(
"/auth/invite",
{
email: toInvite.email,
role: toInvite.role,
},
{ headers: { Authorization: `Bearer ${authToken}` } }
await axiosInstance.requestInvitationToken(
authToken,
toInvite.email,
toInvite.role
);
closeInviteModal();