diff --git a/apps/console/src/pages/iam/organizations/ViewerMembershipLayout.tsx b/apps/console/src/pages/iam/organizations/ViewerMembershipLayout.tsx index b8ffaeee0..84d24ce42 100644 --- a/apps/console/src/pages/iam/organizations/ViewerMembershipLayout.tsx +++ b/apps/console/src/pages/iam/organizations/ViewerMembershipLayout.tsx @@ -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, diff --git a/apps/console/src/pages/iam/organizations/people/_components/PeopleListItem.tsx b/apps/console/src/pages/iam/organizations/people/_components/PeopleListItem.tsx index 8c4f07298..5d4090e46 100644 --- a/apps/console/src/pages/iam/organizations/people/_components/PeopleListItem.tsx +++ b/apps/console/src/pages/iam/organizations/people/_components/PeopleListItem.tsx @@ -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(inviteUserMutation, { successMessage: __("Invitation sent successfully"), errorMessage: __("Failed to send invitation"),