Skip to content

Commit

Permalink
Merge pull request #1003 from fusawa-yugo/fusawa-yugo/fix-study-user-…
Browse files Browse the repository at this point in the history
…attributes-ui

add 5 as the default option of the row number of study user attributes
  • Loading branch information
porink0424 authored Dec 27, 2024
2 parents d414c93 + 7d5b81a commit dfcce8b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tslib/react/src/components/DataGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,19 @@ function DataGrid<T>({
const [columnFilters, setColumnFilters] = React.useState<ColumnFiltersState>(
[]
)
const rowsPerPageOptions = [10, 50, 100, { label: "All", value: data.length }]
const rowsPerPageOptions = [
5,
10,
50,
100,
{ label: "All", value: data.length },
]
const [pagination, setPagination] = React.useState<PaginationState>({
pageIndex: 0,
pageSize:
initialRowsPerPage && rowsPerPageOptions.includes(initialRowsPerPage)
? initialRowsPerPage
: 50,
: 5,
})

const table = useReactTable({
Expand Down

0 comments on commit dfcce8b

Please sign in to comment.