mirror of
https://github.com/suitenumerique/meet.git
synced 2026-10-08 06:20:57 +00:00
fixup! ♿️(frontend) make participant pagination readable and keyboard reachable
This commit is contained in:
@@ -75,6 +75,7 @@ export function PaginationControl({
|
||||
const { t } = useTranslation('rooms', { keyPrefix: 'pagination' })
|
||||
const prevButtonRef = useRef<HTMLButtonElement>(null)
|
||||
const nextButtonRef = useRef<HTMLButtonElement>(null)
|
||||
const isSinglePage = totalPageCount <= 1
|
||||
const isFirstPage = currentPage <= 1
|
||||
const isLastPage = currentPage >= totalPageCount
|
||||
|
||||
@@ -86,10 +87,10 @@ export function PaginationControl({
|
||||
useRegisterKeyboardShortcut({
|
||||
id: focusShortcut ? 'focus-pagination' : undefined,
|
||||
handler: focusPagination,
|
||||
isDisabled: totalPageCount <= 1,
|
||||
isDisabled: isSinglePage,
|
||||
})
|
||||
|
||||
if (totalPageCount <= 1) return null
|
||||
if (isSinglePage) return null
|
||||
|
||||
const pageCount = t('count', { currentPage, totalPageCount })
|
||||
|
||||
|
||||
Reference in New Issue
Block a user