Skip to content

Commit

Permalink
fix: link for prev, next posts
Browse files Browse the repository at this point in the history
  • Loading branch information
hyeda1103 committed Feb 5, 2023
1 parent e22cfbf commit 765e149
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pages/daily/[slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,15 +169,15 @@ function SinglePostPage({ post, prev, next }: Props) {
<Nav>
<Button
arrowOnLeft={true}
onClick={() => router.push(`/dev/${prev?.slug}`)}
onClick={() => router.push(`/daily/${prev?.slug}`)}
isVisible={!!prev}
>
<LeftArrow />
<span>{prev?.title}</span>
</Button>
<Button
arrowOnLeft={false}
onClick={() => router.push(`/dev/${next?.slug}`)}
onClick={() => router.push(`/daily/${next?.slug}`)}
isVisible={!!next}
>
<span>{next?.title}</span>
Expand Down

0 comments on commit 765e149

Please sign in to comment.