aboutsummaryrefslogtreecommitdiffstats
path: root/apps/web/components
diff options
context:
space:
mode:
authorMohamed Bassem <me@mbassem.com>2024-11-03 17:30:17 +0000
committerMohamed Bassem <me@mbassem.com>2024-11-03 17:30:17 +0000
commitfa8286aa900ea4f13c1c15d5b0f441436f042d8a (patch)
tree380a2464f3777059aad67f37bcbdc9ada030327f /apps/web/components
parentcf1a25131fd45ab7c9a72b837be525c24457cd8b (diff)
downloadkarakeep-fa8286aa900ea4f13c1c15d5b0f441436f042d8a.tar.zst
feature(web): Add the ability to view the bookmarks of a particular rss feed
Diffstat (limited to 'apps/web/components')
-rw-r--r--apps/web/components/settings/FeedSettings.tsx13
1 files changed, 11 insertions, 2 deletions
diff --git a/apps/web/components/settings/FeedSettings.tsx b/apps/web/components/settings/FeedSettings.tsx
index 9f2dbda9..09e6264c 100644
--- a/apps/web/components/settings/FeedSettings.tsx
+++ b/apps/web/components/settings/FeedSettings.tsx
@@ -1,6 +1,7 @@
"use client";
import React from "react";
+import Link from "next/link";
import { ActionButton } from "@/components/ui/action-button";
import {
Form,
@@ -14,6 +15,7 @@ import { FullPageSpinner } from "@/components/ui/full-page-spinner";
import { Input } from "@/components/ui/input";
import { toast } from "@/components/ui/use-toast";
import { api } from "@/lib/trpc";
+import { cn } from "@/lib/utils";
import { zodResolver } from "@hookform/resolvers/zod";
import {
ArrowDownToLine,
@@ -35,7 +37,7 @@ import {
} from "@hoarder/shared/types/feeds";
import ActionConfirmingDialog from "../ui/action-confirming-dialog";
-import { Button } from "../ui/button";
+import { Button, buttonVariants } from "../ui/button";
import {
Dialog,
DialogClose,
@@ -302,7 +304,14 @@ export function FeedRow({ feed }: { feed: ZFeed }) {
return (
<TableRow>
- <TableCell>{feed.name}</TableCell>
+ <TableCell>
+ <Link
+ href={`/dashboard/feeds/${feed.id}`}
+ className={cn(buttonVariants({ variant: "link" }))}
+ >
+ {feed.name}
+ </Link>
+ </TableCell>
<TableCell>{feed.url}</TableCell>
<TableCell>{feed.lastFetchedAt?.toLocaleString()}</TableCell>
<TableCell>