баги
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user