Skip to content

Commit d103075

Browse files
committed
pref : Optimize the user list display
1 parent 94fcbd9 commit d103075

16 files changed

Lines changed: 8583 additions & 7472 deletions

File tree

‎components/data-table/useDataTable.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export interface UseDataTableOptions<TData extends RowData> {
3131
* @default false
3232
*/
3333
enableRowSelection?: boolean
34+
initialSorting?: SortingState
3435
}
3536

3637
export interface UseDataTableReturn<TData extends RowData> {
@@ -74,7 +75,7 @@ function createSelectColumn<TData extends RowData>(): ColumnDef<TData> {
7475
}
7576

7677
export function useDataTable<TData extends RowData>(options: UseDataTableOptions<TData>): UseDataTableReturn<TData> {
77-
const sorting = ref<SortingState>([])
78+
const sorting = ref<SortingState>(options.initialSorting ?? [])
7879
const columnFilters = ref<ColumnFiltersState>([])
7980
const rowSelection = ref<RowSelectionState>({})
8081
const pagination = ref<PaginationState>({

‎i18n/locales/de-DE.json‎

Lines changed: 49 additions & 45 deletions
Large diffs are not rendered by default.

‎i18n/locales/en-US.json‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,7 @@
418418
"Master Key (CMK)": "Master Key (CMK)",
419419
"Master Keys (CMK)": "Master Keys (CMK)",
420420
"Max 50TB": "Max 50TB",
421+
"Member Of": "Member Of",
421422
"Members": "Members",
422423
"Memory Critical": "Memory Critical",
423424
"Memory High": "Memory High",
@@ -790,6 +791,8 @@
790791
"Update License": "Update License",
791792
"Update Success": "Update Success",
792793
"Update failed": "Update failed",
794+
"Update success": "Update success",
795+
"Updated At": "Updated At",
793796
"Updated successfully": "Updated successfully",
794797
"Upload": "Upload",
795798
"Upload File": "Upload File",

‎i18n/locales/es-ES.json‎

Lines changed: 50 additions & 46 deletions
Large diffs are not rendered by default.

‎i18n/locales/fr-FR.json‎

Lines changed: 49 additions & 45 deletions
Large diffs are not rendered by default.

‎i18n/locales/id-ID.json‎

Lines changed: 49 additions & 45 deletions
Large diffs are not rendered by default.

‎i18n/locales/it-IT.json‎

Lines changed: 49 additions & 45 deletions
Large diffs are not rendered by default.

‎i18n/locales/ja-JP.json‎

Lines changed: 49 additions & 45 deletions
Large diffs are not rendered by default.

‎i18n/locales/ko-KR.json‎

Lines changed: 49 additions & 45 deletions
Large diffs are not rendered by default.

‎i18n/locales/pt-BR.json‎

Lines changed: 49 additions & 45 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)