This commit is contained in:
Philipinho 2025-02-27 14:18:25 +00:00
parent fda5c7d60f
commit e13be904cd
2 changed files with 0 additions and 12 deletions

View File

@ -5,7 +5,6 @@ import { modals } from "@mantine/modals";
import {
useResendInvitationMutation,
useRevokeInvitationMutation,
useGetInviteLink,
} from "@/features/workspace/queries/workspace-query.ts";
import { useTranslation } from "react-i18next";
import { notifications } from "@mantine/notifications";

View File

@ -14,7 +14,6 @@ import {
resendInvitation,
revokeInvitation,
getWorkspace,
getInviteLink,
getWorkspacePublicData,
} from "@/features/workspace/services/workspace-service";
import { IPagination, QueryParams } from "@/lib/types.ts";
@ -22,7 +21,6 @@ import { notifications } from "@mantine/notifications";
import {
ICreateInvite,
IInvitation,
IInvitationLink,
IWorkspace,
} from "@/features/workspace/types/workspace.types.ts";
import { IUser } from "@/features/user/types/user.types.ts";
@ -83,15 +81,6 @@ export function useWorkspaceInvitationsQuery(
});
}
export function useGetInviteLink(
invitationId: string
): UseQueryResult<IInvitationLink,Error> {
return useQuery({
queryKey:["inviteLink",invitationId],
queryFn: () => getInviteLink({ invitationId }),
})
}
export function useCreateInvitationMutation() {
const { t } = useTranslation();
const queryClient = useQueryClient();