diff --git a/components/BlogPostCard.js b/components/BlogPostCard.js index e218de67..e2ccbf81 100644 --- a/components/BlogPostCard.js +++ b/components/BlogPostCard.js @@ -6,7 +6,7 @@ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faFolder } from '@fortawesome/free-solid-svg-icons' import TagItemMini from './TagItemMini' -const BlogPostCard = ({ post, tags }) => { +const BlogPostCard = ({ post }) => { return (
diff --git a/components/BlogPostListPage.js b/components/BlogPostListPage.js index f18d5d62..39e228d5 100644 --- a/components/BlogPostListPage.js +++ b/components/BlogPostListPage.js @@ -43,7 +43,7 @@ const BlogPostListPage = ({ page = 1, posts = [], tags }) => { {/* 文章列表 */}
{postsToShow.map(post => ( - + ))}
diff --git a/components/BlogPostListScroll.js b/components/BlogPostListScroll.js index ead487ca..154669ca 100644 --- a/components/BlogPostListScroll.js +++ b/components/BlogPostListScroll.js @@ -14,7 +14,7 @@ import { useGlobal } from '@/lib/global' * @returns {JSX.Element} * @constructor */ -const BlogPostListScroll = ({ posts = [], tags, currentSearch, currentCategory, currentTag }) => { +const BlogPostListScroll = ({ posts = [], currentSearch, currentCategory, currentTag }) => { const postsPerPage = BLOG.postsPerPage const [page, updatePage] = useState(1) const postsToShow = getPostByPage(page, posts, postsPerPage) @@ -58,7 +58,7 @@ const BlogPostListScroll = ({ posts = [], tags, currentSearch, currentCategory, {/* 文章列表 */}
{postsToShow.map(post => ( - + ))}