Skip to content

Commit

Permalink
[PAGE] Fixed build error
Browse files Browse the repository at this point in the history
[Description]
- Fixed exlint rules text
  • Loading branch information
goomba25 committed Aug 9, 2024
1 parent 38e597a commit 8b9ba85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/(route)/archive/[category]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ export default async function CategoryPage({params}: {params: {category: string}
if (posts.length === 0) {
return (
<div className={styles.container}>
<h1 className={styles.title}>'{displayName}' List</h1>
<h1 className={styles.title}>&apos;{displayName}&apos; List</h1>
<p className={styles.noPostsMessage}>No Post.</p>
</div>
);
}

return (
<div className={styles.container}>
<h1 className={styles.title}>'{displayName}' List</h1>
<h1 className={styles.title}>&apos;{displayName}&apos; List</h1>
<PostList posts={posts.slice((currentPage - 1) * postsPerPage,
currentPage * postsPerPage)}
category={params.category} />
Expand Down

0 comments on commit 8b9ba85

Please sign in to comment.