diff --git a/app/(browse)/search/_components/results-card.tsx b/app/(browse)/search/_components/results-card.tsx index ddd86e4..efd40e9 100644 --- a/app/(browse)/search/_components/results-card.tsx +++ b/app/(browse)/search/_components/results-card.tsx @@ -3,6 +3,7 @@ import { Skeleton } from "@/components/ui/skeleton"; import { VerifiedMark } from "@/components/verified-mark"; import { User } from "@prisma/client"; import { formatDistanceToNow } from "date-fns"; +import Link from "next/link"; import React from "react"; interface ResultsCardProps { @@ -18,30 +19,32 @@ interface ResultsCardProps { export const ResultsCard = ({ data }: ResultsCardProps) => { return ( -
- {data.user.username} + +
+ {data.user.username} +
+{data.name}
++ {formatDistanceToNow(new Date(data.updatedAt), { + addSuffix: true, + })}
-{data.name}
-- {formatDistanceToNow(new Date(data.updatedAt), { - addSuffix: true, - })} -