Skip to content

Commit

Permalink
fix(pagination): remove padding button on pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustavo Pinho committed Nov 17, 2020
1 parent e5c6046 commit 796ca3a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/components/Pagination/Pagination.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,13 @@ const Pagination = ({
return Array.from({ length: prevLength }).map((_, index) => {
const pagesBefore = page - (prevLength - index)
return (
<ButtonPage caption={pagesBefore} key={pagesBefore} hover variant='text' onClick={() => setPage(pagesBefore)} />
<ButtonPage
caption={pagesBefore}
key={pagesBefore}
hover
variant='text'
onClick={() => setPage(pagesBefore)}
/>
)
})
} else if (direction === 'after') {
Expand Down Expand Up @@ -170,6 +176,7 @@ const ButtonPage = styled(Button)`
justify-content: center;
align-items: center;
color: ${th.color('gray.800')};
padding: 0;
p {
font-size: ${th.fontSize(2)};
Expand Down

0 comments on commit 796ca3a

Please sign in to comment.