Skip to content

Commit

Permalink
Update ContentDetail component to remove a tag from Link component
Browse files Browse the repository at this point in the history
* Modify `Link` component to include `className` directly instead of using `a` tag
* Update previous and next article links to use the modified `Link` component
  • Loading branch information
WakuwakuP committed Nov 6, 2024
1 parent d1b4f98 commit 8ff2c80
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/templates/ContentDetail/ContentDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,13 @@ export const ContentDetail = ({ content, toc, nextArticle, previousArticle }: Co
</div>
<div className={styles.navigationLinks}>
{previousArticle && (
<Link href={`/content/detail/${previousArticle.id}`}>
<a className={styles.previousArticleLink}>Previous: {previousArticle.title}</a>
<Link href={`/content/detail/${previousArticle.id}`} className={styles.previousArticleLink}>
Previous: {previousArticle.title}
</Link>
)}
{nextArticle && (
<Link href={`/content/detail/${nextArticle.id}`}>
<a className={styles.nextArticleLink}>Next: {nextArticle.title}</a>
<Link href={`/content/detail/${nextArticle.id}`} className={styles.nextArticleLink}>
Next: {nextArticle.title}
</Link>
)}
</div>
Expand Down

0 comments on commit 8ff2c80

Please sign in to comment.