diff --git a/adminfront/src/features/tenants/routes/TenantListPage.tsx b/adminfront/src/features/tenants/routes/TenantListPage.tsx
index cfc211a6..f5612345 100644
--- a/adminfront/src/features/tenants/routes/TenantListPage.tsx
+++ b/adminfront/src/features/tenants/routes/TenantListPage.tsx
@@ -4,7 +4,7 @@ import {
useQuery,
type UseMutationResult,
} from "@tanstack/react-query";
-import type { AdminProfile } from "../../../lib/adminApi";
+import type { UserProfileResponse } from "../../../lib/adminApi";
import { useVirtualizer } from "@tanstack/react-virtual";
import type { AxiosError } from "axios";
import {
@@ -498,6 +498,17 @@ function TenantListPage() {
setSortConfig((current) => toggleSort(current, key));
};
+ const getSortIcon = (key: TenantSortKey) => {
+ if (!sortConfig || sortConfig.key !== key) {
+ return ;
+ }
+ return sortConfig.direction === "asc" ? (
+
+ ) : (
+
+ );
+ };
+
const deletableTenants = React.useMemo(
() => allTenants.filter((tenant) => !isSeedTenant(tenant)),
[allTenants],
@@ -1196,7 +1207,7 @@ const TenantHierarchyView: React.FC<{
{ tenantId: string; status: string },
unknown
>;
- profile: AdminProfile | undefined;
+ profile: UserProfileResponse | undefined;
sortConfig: SortConfig | null;
requestSort: (key: TenantSortKey) => void;
getSortIcon: (key: TenantSortKey) => React.ReactNode;
diff --git a/adminfront/src/features/users/UserListPage.tsx b/adminfront/src/features/users/UserListPage.tsx
index dd6840f4..07256af6 100644
--- a/adminfront/src/features/users/UserListPage.tsx
+++ b/adminfront/src/features/users/UserListPage.tsx
@@ -303,6 +303,17 @@ function UserListPage() {
setSortConfig((current) => toggleSort(current, key));
};
+ const getSortIcon = (key: UserSortKey) => {
+ if (!sortConfig || sortConfig.key !== key) {
+ return ;
+ }
+ return sortConfig.direction === "asc" ? (
+
+ ) : (
+
+ );
+ };
+
const total = query.data?.total ?? 0;
const totalPages = Math.ceil(total / limit);
const canPromoteSuperAdmin = isSuperAdminRole(profile?.role);