From f36bef2df1a3e639e73aadcd5a8a24ddac54b1c8 Mon Sep 17 00:00:00 2001
From: MohamedBassem <me@mbassem.com>
Date: Fri, 15 Mar 2024 13:45:13 +0000
Subject: feat(mobile): Add tag viewing page

---
 apps/mobile/components/bookmarks/BookmarkCard.tsx | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

(limited to 'apps/mobile/components/bookmarks/BookmarkCard.tsx')

diff --git a/apps/mobile/components/bookmarks/BookmarkCard.tsx b/apps/mobile/components/bookmarks/BookmarkCard.tsx
index 07d7f4fe..a969bc8b 100644
--- a/apps/mobile/components/bookmarks/BookmarkCard.tsx
+++ b/apps/mobile/components/bookmarks/BookmarkCard.tsx
@@ -9,6 +9,7 @@ import {
 } from "react-native";
 import Markdown from "react-native-markdown-display";
 import * as Haptics from "expo-haptics";
+import { Link } from "expo-router";
 import * as WebBrowser from "expo-web-browser";
 import { api } from "@/lib/trpc";
 import { MenuView } from "@react-native-menu/menu";
@@ -57,7 +58,7 @@ function ActionBar({ bookmark }: { bookmark: ZBookmark }) {
     api.bookmarks.deleteBookmark.useMutation({
       onSuccess: () => {
         toast({
-          message: 'The bookmark has been deleted!',
+          message: "The bookmark has been deleted!",
           showProgress: false,
         });
         apiUtils.bookmarks.getBookmarks.invalidate();
@@ -169,7 +170,7 @@ function TagList({ bookmark }: { bookmark: ZBookmark }) {
             key={t.id}
             className="rounded-full border border-gray-200 px-2.5 py-0.5 text-xs font-semibold"
           >
-            <Text>{t.name}</Text>
+            <Link href={`dashboard/tags/${t.id}`}>{t.name}</Link>
           </View>
         ))}
       </View>
-- 
cgit v1.2.3-70-g09d2

