Skip to content

Commit

Permalink
updated pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedibra28 committed May 8, 2021
1 parent e9fc22a commit 681bbf7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 3 additions & 2 deletions frontend/src/components/Pagination.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const Pagination = ({ setPage, page, pages, limit, setLimit, total }) => {

return (
pages > 1 && (
<nav aria-label='Page navigation example'>
<div aria-label='Page navigation example'>
<ul className='pagination'>
<li className={`page-item ${page === 1 && 'disabled'}`}>
<span
Expand All @@ -86,6 +86,7 @@ const Pagination = ({ setPage, page, pages, limit, setLimit, total }) => {
value={limit}
name='limit'
className='page-link outline-none shadow-none'
style={{ padding: '0.42rem 0px' }}
>
{total > 10 && page <= total / 5 && (
<option value='10'>10</option>
Expand All @@ -105,7 +106,7 @@ const Pagination = ({ setPage, page, pages, limit, setLimit, total }) => {
</select>
</li>
</ul>
</nav>
</div>
)
)
}
Expand Down
1 change: 0 additions & 1 deletion frontend/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#sidebar {
height: 100vh;
transition: 0.7s ease-in-out;
min-width: 10rem;
position: fixed;
z-index: 1;
}
Expand Down

0 comments on commit 681bbf7

Please sign in to comment.