Skip to content

Commit

Permalink
fix(blog): index pagination current value
Browse files Browse the repository at this point in the history
  • Loading branch information
kendallstrautman committed Aug 5, 2020
1 parent 21333b6 commit 0a4ced9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/ui/BlogPagination.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ export const BlogPagination = styled(
<PaginationLinks>
{!isFirst && (
<DynamicLink href={prevPage} passHref>
<a>← Newer</a>
<a onClick={() => setSelectValue(selectValue - 1)}>← Newer</a>
</DynamicLink>
)}
{!isLast && (
<DynamicLink href={nextPage} passHref>
<a>Older →</a>
<a onClick={() => setSelectValue(selectValue + 1)}>Older →</a>
</DynamicLink>
)}
</PaginationLinks>
Expand Down

0 comments on commit 0a4ced9

Please sign in to comment.