fix: nameless in sidebar for orgs (#10318)
Co-authored-by: sean-brydon <[email protected]>
This commit is contained in:
1 parent
80a1458538
commit
4e1e586541
17 files changed
+58
-56
No files matched your search
@@ -9,7 +9,7 @@ import type { MembershipRole } from "@calcom/prisma/enums";
|
||||
import { trpc } from "@calcom/trpc";
|
||||
import { Avatar, Badge, Button, DataTable } from "@calcom/ui";
|
||||
|
||||
import { useOrgBrandingValues } from "../../../ee/organizations/hooks";
|
||||
import { useOrgBranding } from "../../../ee/organizations/context/provider";
|
||||
import { ChangeUserRoleModal } from "./ChangeUserRoleModal";
|
||||
import { DeleteMemberModal } from "./DeleteMemberModal";
|
||||
import { ImpersonationMemberModal } from "./ImpersonationMemberModal";
|
||||
@@ -97,7 +97,7 @@ export function UserListTable() {
|
||||
const tableContainerRef = useRef<HTMLDivElement>(null);
|
||||
const [state, dispatch] = useReducer(reducer, initialState);
|
||||
const { t } = useLocale();
|
||||
const orgBranding = useOrgBrandingValues();
|
||||
const orgBranding = useOrgBranding();
|
||||
|
||||
const { data, isLoading, fetchNextPage, isFetching } =
|
||||
trpc.viewer.organizations.listMembers.useInfiniteQuery(
|
||||
|
||||
@@ -14,7 +14,6 @@ import {
|
||||
DropdownMenuSeparator,
|
||||
} from "@calcom/ui";
|
||||
|
||||
import { useOrgBrandingValues } from "../../../ee/organizations/hooks";
|
||||
import type { Action } from "./UserListTable";
|
||||
import type { User } from "./UserListTable";
|
||||
|
||||
@@ -34,7 +33,6 @@ export function TableActions({
|
||||
};
|
||||
}) {
|
||||
const { t } = useLocale();
|
||||
const orgBranding = useOrgBrandingValues();
|
||||
|
||||
const usersProfileUrl = domain + "/" + user.username;
|
||||
|
||||
|
||||
Reference in new issue
Block a user