aboutsummaryrefslogtreecommitdiffstats
path: root/frontend/src/components/FeedList.tsx
diff options
context:
space:
mode:
authorAdam Mathes <adam@adammathes.com>2026-02-13 06:55:21 -0800
committerAdam Mathes <adam@adammathes.com>2026-02-13 06:55:21 -0800
commit3ba71500bc2d60a00ca81b9439305029670f4d52 (patch)
tree5752a119effd739c62c80c2d15d4520c2e53eadf /frontend/src/components/FeedList.tsx
parent2c3cad528a247c771bca136466337877f76f280f (diff)
downloadneko-3ba71500bc2d60a00ca81b9439305029670f4d52.tar.gz
neko-3ba71500bc2d60a00ca81b9439305029670f4d52.tar.bz2
neko-3ba71500bc2d60a00ca81b9439305029670f4d52.zip
Implement Frontend Feed Items View with tests
Diffstat (limited to 'frontend/src/components/FeedList.tsx')
-rw-r--r--frontend/src/components/FeedList.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/frontend/src/components/FeedList.tsx b/frontend/src/components/FeedList.tsx
index fb7c1de..f913293 100644
--- a/frontend/src/components/FeedList.tsx
+++ b/frontend/src/components/FeedList.tsx
@@ -1,4 +1,5 @@
import { useEffect, useState } from 'react';
+import { Link } from 'react-router-dom';
import type { Feed } from '../types';
import './FeedList.css';
@@ -37,9 +38,9 @@ export default function FeedList() {
<ul className="feed-list-items">
{feeds.map((feed) => (
<li key={feed._id} className="feed-item">
- <a href={feed.web_url} target="_blank" rel="noopener noreferrer" className="feed-title">
+ <Link to={`/feed/${feed._id}`} className="feed-title">
{feed.title || feed.url}
- </a>
+ </Link>
{feed.category && <span className="feed-category">{feed.category}</span>}
</li>
))}