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