diff --git a/app/components/Feed.tsx b/app/components/Feed.tsx index 1b1a463..387d68f 100644 --- a/app/components/Feed.tsx +++ b/app/components/Feed.tsx @@ -4,7 +4,7 @@ import { formatDate } from "@/utils"; import * as ScrollArea from "@radix-ui/react-scroll-area"; import { useEffect, useState } from "react"; import { Article } from "@/lib/prisma"; -import { useFetcher } from "@remix-run/react"; +import { Link, useFetcher } from "@remix-run/react"; const Feed = ({ className, @@ -112,7 +112,7 @@ const Feed = ({ {formatDate(item.createdAt)}

- {item.title} + {item.title}

); diff --git a/app/routes/search.tsx b/app/routes/search.tsx index eac504c..25f3117 100644 --- a/app/routes/search.tsx +++ b/app/routes/search.tsx @@ -55,7 +55,10 @@ const Page = () => { {formatDate(item.timestamp)} -

{item.title}

+

+ {" "} + {item.title} +

))} diff --git a/app/types.d.ts b/app/types.d.ts index 65a819d..1c83814 100644 --- a/app/types.d.ts +++ b/app/types.d.ts @@ -4,6 +4,7 @@ export type SearchResult = { title: string; description: string; slug: string; + cid: string; }; export type SelectOptions = {