This commit is contained in:
Zuev
2026-10-02 04:07:56 +03:00
parent 97bf3cc50a
commit fc5801d683
42 changed files with 1201 additions and 305 deletions

View File

@@ -1,3 +1,4 @@
import { CustomSelect } from './CustomSelect.jsx';
const PAGE_SIZES = [25, 50, 100];
export function Pagination({
@@ -25,14 +26,14 @@ export function Pagination({
<div className="pagination-actions">
<label className="pagination-size">
<span>На странице</span>
<select
<CustomSelect
value={pageSize}
onChange={event => onSize?.(Number(event.target.value))}
>
{PAGE_SIZES.map(value => (
<option key={value} value={value}>{value}</option>
))}
</select>
</CustomSelect>
</label>
<button
type="button"