aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/src/components/ArticleList.tsx
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-08-04 09:27:30 +0900
committernsfisis <nsfisis@gmail.com>2025-08-04 09:27:30 +0900
commit0f0a08196a045d49cf98bb2b841e6475cc0c94a6 (patch)
treec8d0353eca02ed6e5c97166c2683d033025fb1af /frontend/src/components/ArticleList.tsx
parentfb52b25834b95ff9a11f8c7d3c20453e26d3bd4f (diff)
downloadfeedaka-0f0a08196a045d49cf98bb2b841e6475cc0c94a6.tar.gz
feedaka-0f0a08196a045d49cf98bb2b841e6475cc0c94a6.tar.zst
feedaka-0f0a08196a045d49cf98bb2b841e6475cc0c94a6.zip
refactor(frontend): Remove unnecessary component property
Diffstat (limited to 'frontend/src/components/ArticleList.tsx')
-rw-r--r--frontend/src/components/ArticleList.tsx9
1 files changed, 2 insertions, 7 deletions
diff --git a/frontend/src/components/ArticleList.tsx b/frontend/src/components/ArticleList.tsx
index 5d508c5..2ea94f0 100644
--- a/frontend/src/components/ArticleList.tsx
+++ b/frontend/src/components/ArticleList.tsx
@@ -9,10 +9,9 @@ interface Props {
| GetUnreadArticlesQuery["unreadArticles"]
| GetReadArticlesQuery["readArticles"]
>;
- showReadStatus?: boolean;
}
-export function ArticleList({ articles, showReadStatus = true }: Props) {
+export function ArticleList({ articles }: Props) {
if (articles.length === 0) {
return (
<div className="p-4 text-center text-gray-500">No articles found.</div>
@@ -51,11 +50,7 @@ export function ArticleList({ articles, showReadStatus = true }: Props) {
</h3>
<div className="space-y-1">
{feedArticles.map((article) => (
- <ArticleItem
- key={article.id}
- article={article}
- showReadStatus={showReadStatus}
- />
+ <ArticleItem key={article.id} article={article} />
))}
</div>
</div>