forked from baron/baron-sso
테이블 기본 정렬 생성일 통일
This commit is contained in:
@@ -120,8 +120,12 @@ function ClientsPage() {
|
||||
const [statusFilter, setStatusFilter] = useState("all");
|
||||
const [isAdvancedFilterOpen, setIsAdvancedFilterOpen] = useState(false);
|
||||
const [isRequestModalOpen, setIsRequestModalOpen] = useState(false);
|
||||
const [sortConfig, setSortConfig] =
|
||||
useState<SortConfig<ClientSortKey> | null>(null);
|
||||
const [sortConfig, setSortConfig] = useState<SortConfig<ClientSortKey> | null>(
|
||||
{
|
||||
key: "createdAt",
|
||||
direction: "desc",
|
||||
},
|
||||
);
|
||||
|
||||
const clients = data?.items || [];
|
||||
const clientSortResolvers = useMemo<
|
||||
@@ -439,35 +443,30 @@ function ClientsPage() {
|
||||
<TableHeader>
|
||||
<TableRow>
|
||||
<SortableTableHead
|
||||
className="text-muted-foreground"
|
||||
label={t("ui.dev.clients.table.application", "애플리케이션")}
|
||||
onSort={requestSort}
|
||||
sortConfig={sortConfig}
|
||||
sortKey="application"
|
||||
/>
|
||||
<SortableTableHead
|
||||
className="text-muted-foreground"
|
||||
label={t("ui.dev.clients.table.client_id", "Client ID")}
|
||||
onSort={requestSort}
|
||||
sortConfig={sortConfig}
|
||||
sortKey="id"
|
||||
/>
|
||||
<SortableTableHead
|
||||
className="text-muted-foreground"
|
||||
label={t("ui.dev.clients.table.type", "유형")}
|
||||
onSort={requestSort}
|
||||
sortConfig={sortConfig}
|
||||
sortKey="type"
|
||||
/>
|
||||
<SortableTableHead
|
||||
className="text-muted-foreground"
|
||||
label={t("ui.dev.clients.table.status", "상태")}
|
||||
onSort={requestSort}
|
||||
sortConfig={sortConfig}
|
||||
sortKey="status"
|
||||
/>
|
||||
<SortableTableHead
|
||||
className="text-muted-foreground"
|
||||
label={t("ui.dev.clients.table.created_at", "생성일")}
|
||||
onSort={requestSort}
|
||||
sortConfig={sortConfig}
|
||||
|
||||
Reference in New Issue
Block a user