From b16b3dee599440a9f8477b087de8c486c60bf138 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Thu, 6 Jan 2022 17:41:46 +0800 Subject: [PATCH] =?UTF-8?q?BlogPostCard=20=E5=8E=BB=E6=8E=89tags=E6=9E=84?= =?UTF-8?q?=E9=80=A0=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/BlogPostCard.js | 2 +- components/BlogPostListPage.js | 2 +- components/BlogPostListScroll.js | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) 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 => ( - + ))}