@@ -1,4 +1,3 @@
|
|||||||
import { useTranslate } from "@probo/i18n";
|
|
||||||
import { Layout, Skeleton } from "@probo/ui";
|
import { Layout, Skeleton } from "@probo/ui";
|
||||||
import { Suspense } from "react";
|
import { Suspense } from "react";
|
||||||
import { graphql, type PreloadedQuery, usePreloadedQuery } from "react-relay";
|
import { graphql, type PreloadedQuery, usePreloadedQuery } from "react-relay";
|
||||||
@@ -43,8 +42,6 @@ export function ViewerMembershipLayout(props: {
|
|||||||
}) {
|
}) {
|
||||||
const { hideSidebar = false, queryRef } = props;
|
const { hideSidebar = false, queryRef } = props;
|
||||||
|
|
||||||
const { __ } = useTranslate();
|
|
||||||
|
|
||||||
const { organization, viewer }
|
const { organization, viewer }
|
||||||
= usePreloadedQuery<ViewerMembershipLayoutQuery>(
|
= usePreloadedQuery<ViewerMembershipLayoutQuery>(
|
||||||
viewerMembershipLayoutQuery,
|
viewerMembershipLayoutQuery,
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ import { useTranslate } from "@probo/i18n";
|
|||||||
import {
|
import {
|
||||||
ActionDropdown,
|
ActionDropdown,
|
||||||
Badge,
|
Badge,
|
||||||
Button,
|
|
||||||
DropdownItem,
|
DropdownItem,
|
||||||
IconMail,
|
IconMail,
|
||||||
IconTrashCan,
|
IconTrashCan,
|
||||||
@@ -106,7 +105,7 @@ export function PeopleListItem(props: {
|
|||||||
const { fKey, connectionId } = props;
|
const { fKey, connectionId } = props;
|
||||||
|
|
||||||
const organizationId = useOrganizationId();
|
const organizationId = useOrganizationId();
|
||||||
const { __, dateTimeFormat } = useTranslate();
|
const { __ } = useTranslate();
|
||||||
const confirm = useConfirm();
|
const confirm = useConfirm();
|
||||||
|
|
||||||
const { role } = use(CurrentUser);
|
const { role } = use(CurrentUser);
|
||||||
@@ -117,7 +116,7 @@ export function PeopleListItem(props: {
|
|||||||
|
|
||||||
const isInactive = profile.state === "INACTIVE";
|
const isInactive = profile.state === "INACTIVE";
|
||||||
|
|
||||||
const [inviteUser, isInviting]
|
const [inviteUser]
|
||||||
= useMutationWithToasts<PeopleListItem_inviteMutation>(inviteUserMutation, {
|
= useMutationWithToasts<PeopleListItem_inviteMutation>(inviteUserMutation, {
|
||||||
successMessage: __("Invitation sent successfully"),
|
successMessage: __("Invitation sent successfully"),
|
||||||
errorMessage: __("Failed to send invitation"),
|
errorMessage: __("Failed to send invitation"),
|
||||||
|
|||||||
Reference in New Issue
Block a user