forked from baron/baron-sso
테이블 기본 정렬 생성일 통일
This commit is contained in:
@@ -238,8 +238,12 @@ function TenantListPage() {
|
||||
const [viewMode, setViewMode] = React.useState<"list" | "hierarchy">("list");
|
||||
const [selectedIds, setSelectedIds] = React.useState<string[]>([]);
|
||||
const [search, setSearch] = React.useState("");
|
||||
const [sortConfig, setSortConfig] =
|
||||
React.useState<SortConfig<TenantSortKey> | null>(null);
|
||||
const [sortConfig, setSortConfig] = React.useState<SortConfig<TenantSortKey> | null>(
|
||||
{
|
||||
key: "createdAt",
|
||||
direction: "desc",
|
||||
},
|
||||
);
|
||||
const fileInputRef = React.useRef<HTMLInputElement | null>(null);
|
||||
const [importMessage, setImportMessage] = React.useState("");
|
||||
const [previewRows, setPreviewRows] = React.useState<
|
||||
@@ -965,53 +969,53 @@ function TenantListPage() {
|
||||
/>
|
||||
</TableHead>
|
||||
<SortableTableHead
|
||||
className="min-w-[220px] whitespace-nowrap text-foreground sticky top-0 bg-inherit"
|
||||
className="min-w-[220px] whitespace-nowrap sticky top-0 bg-inherit"
|
||||
label={t("ui.admin.tenants.table.id", "ID")}
|
||||
onSort={requestSort}
|
||||
sortConfig={sortConfig}
|
||||
sortKey="id"
|
||||
/>
|
||||
<SortableTableHead
|
||||
className="whitespace-nowrap text-foreground sticky top-0 bg-inherit"
|
||||
className="whitespace-nowrap sticky top-0 bg-inherit"
|
||||
label={t("ui.admin.tenants.table.name", "NAME")}
|
||||
onSort={requestSort}
|
||||
sortConfig={sortConfig}
|
||||
sortKey="name"
|
||||
/>
|
||||
<SortableTableHead
|
||||
className="whitespace-nowrap text-foreground sticky top-0 bg-inherit"
|
||||
className="whitespace-nowrap sticky top-0 bg-inherit"
|
||||
label={t("ui.admin.tenants.table.type", "TYPE")}
|
||||
onSort={requestSort}
|
||||
sortConfig={sortConfig}
|
||||
sortKey="type"
|
||||
/>
|
||||
<SortableTableHead
|
||||
className="whitespace-nowrap text-foreground sticky top-0 bg-inherit"
|
||||
className="whitespace-nowrap sticky top-0 bg-inherit"
|
||||
label={t("ui.admin.tenants.table.slug", "SLUG")}
|
||||
onSort={requestSort}
|
||||
sortConfig={sortConfig}
|
||||
sortKey="slug"
|
||||
/>
|
||||
<SortableTableHead
|
||||
className="whitespace-nowrap text-foreground sticky top-0 bg-inherit"
|
||||
className="whitespace-nowrap sticky top-0 bg-inherit"
|
||||
label={t("ui.admin.tenants.table.status", "STATUS")}
|
||||
onSort={requestSort}
|
||||
sortConfig={sortConfig}
|
||||
sortKey="status"
|
||||
/>
|
||||
<SortableTableHead
|
||||
className="whitespace-nowrap text-foreground sticky top-0 bg-inherit"
|
||||
className="whitespace-nowrap sticky top-0 bg-inherit"
|
||||
label={t("ui.admin.tenants.table.members", "MEMBERS")}
|
||||
onSort={requestSort}
|
||||
sortConfig={sortConfig}
|
||||
sortKey="recursiveMemberCount"
|
||||
/>
|
||||
<SortableTableHead
|
||||
className="whitespace-nowrap text-foreground sticky top-0 bg-inherit"
|
||||
label={t("ui.admin.tenants.table.updated", "UPDATED")}
|
||||
className="whitespace-nowrap sticky top-0 bg-inherit"
|
||||
label={t("ui.admin.tenants.table.created", "CREATED")}
|
||||
onSort={requestSort}
|
||||
sortConfig={sortConfig}
|
||||
sortKey="updatedAt"
|
||||
sortKey="createdAt"
|
||||
/>
|
||||
<TableHead className="whitespace-nowrap">
|
||||
{t("ui.common.actions", "액션")}
|
||||
|
||||
Reference in New Issue
Block a user