Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-web
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-web
Commits
bc9a9ce0
Commit
bc9a9ce0
authored
3 months ago
by
Léopold Chappuis
Browse files
Options
Downloads
Patches
Plain Diff
admin-accounts-overview: update default row per page options
Change-Id: I98e253db33f84526603a49f605f0a228a9c4aa68
parent
3257f5ec
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
client/src/components/AdminSettings/AccountsOverview.tsx
+4
-2
4 additions, 2 deletions
client/src/components/AdminSettings/AccountsOverview.tsx
with
4 additions
and
2 deletions
client/src/components/AdminSettings/AccountsOverview.tsx
+
4
−
2
View file @
bc9a9ce0
...
@@ -51,6 +51,8 @@ function descendingComparator<T>(a: T, b: T, orderBy: keyof T) {
...
@@ -51,6 +51,8 @@ function descendingComparator<T>(a: T, b: T, orderBy: keyof T) {
return
0
return
0
}
}
const
rowPerPagesOptions
=
[
10
,
25
,
50
,
100
]
type
Order
=
'
asc
'
|
'
desc
'
type
Order
=
'
asc
'
|
'
desc
'
function
getComparator
<
Key
extends
keyof
any
>
(
function
getComparator
<
Key
extends
keyof
any
>
(
...
@@ -195,7 +197,7 @@ export default function AccountsOverview() {
...
@@ -195,7 +197,7 @@ export default function AccountsOverview() {
const
[
orderBy
,
setOrderBy
]
=
useState
<
keyof
AccountOverview
>
(
'
auth
'
)
const
[
orderBy
,
setOrderBy
]
=
useState
<
keyof
AccountOverview
>
(
'
auth
'
)
const
[
selected
,
setSelected
]
=
useState
<
readonly
string
[]
>
([])
const
[
selected
,
setSelected
]
=
useState
<
readonly
string
[]
>
([])
const
[
page
,
setPage
]
=
useState
(
0
)
const
[
page
,
setPage
]
=
useState
(
0
)
const
[
rowsPerPage
,
setRowsPerPage
]
=
useState
(
5
)
const
[
rowsPerPage
,
setRowsPerPage
]
=
useState
(
rowPerPagesOptions
[
0
]
)
const
getAllAccounts
=
useGetAllAccounts
()
const
getAllAccounts
=
useGetAllAccounts
()
const
accountDeletionMutation
=
useDeleteAccounts
()
const
accountDeletionMutation
=
useDeleteAccounts
()
...
@@ -332,7 +334,7 @@ export default function AccountsOverview() {
...
@@ -332,7 +334,7 @@ export default function AccountsOverview() {
</
Table
>
</
Table
>
</
TableContainer
>
</
TableContainer
>
<
TablePagination
<
TablePagination
rowsPerPageOptions
=
{
[
5
,
10
,
25
]
}
rowsPerPageOptions
=
{
rowPerPagesOptions
}
component
=
"div"
component
=
"div"
count
=
{
rows
.
length
}
count
=
{
rows
.
length
}
rowsPerPage
=
{
rowsPerPage
}
rowsPerPage
=
{
rowsPerPage
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment