mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-06-01 01:56:20 +00:00
Moved helper functions to render progressive paginators to a common place
This commit is contained in:
@@ -2,7 +2,7 @@ import React from 'react';
|
||||
import { Link } from 'react-router-dom';
|
||||
import { Pagination, PaginationItem, PaginationLink } from 'reactstrap';
|
||||
import PropTypes from 'prop-types';
|
||||
import { ELLIPSIS, progressivePagination } from '../common/SimplePaginator';
|
||||
import { ELLIPSIS, progressivePagination } from '../utils/utils';
|
||||
|
||||
const propTypes = {
|
||||
serverId: PropTypes.string.isRequired,
|
||||
@@ -36,7 +36,7 @@ const Paginator = ({ paginator = {}, serverId }) => {
|
||||
));
|
||||
|
||||
return (
|
||||
<Pagination listClassName="flex-wrap">
|
||||
<Pagination listClassName="flex-wrap justify-content-center">
|
||||
<PaginationItem disabled={currentPage === 1}>
|
||||
<PaginationLink
|
||||
previous
|
||||
|
||||
Reference in New Issue
Block a user