mirror of
https://github.com/docmost/docmost
synced 2025-03-28 21:13:28 +00:00
Merge branch 'main' into feature-copy_invite_link
This commit is contained in:
commit
91c250ebdf
@ -5,6 +5,7 @@ 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";
|
||||
|
@ -83,6 +83,15 @@ 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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user