mirror of
https://github.com/docmost/docmost
synced 2025-03-28 21:13:28 +00:00
cleanup
This commit is contained in:
parent
fda5c7d60f
commit
e13be904cd
@ -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";
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user