Connect, collaborate, and grow with a community of TypeScript developers
919 link to solution fix (#923)
Amanuel Odicho58c8118a6777
diff --git a/apps/web/src/app/[locale]/[username]/_components/dashboard/shared-solutions-tab.tsx b/apps/web/src/app/[locale]/[username]/_components/dashboard/shared-solutions-tab.tsxindex f142d987..ad19b1a5 100644--- a/apps/web/src/app/[locale]/[username]/_components/dashboard/shared-solutions-tab.tsx+++ b/apps/web/src/app/[locale]/[username]/_components/dashboard/shared-solutions-tab.tsx@@ -1,7 +1,6 @@import Link from 'next/link';import { prisma } from '@repo/db';-import { Badge } from '@repo/ui/components/badge';import {Table,TableBody,@@ -27,7 +26,8 @@ export async function SharedSolutionsTab({ userId }: { userId: string }) {<Table><TableHeader><TableRow>- <TableHead>Shared Solution</TableHead>+ <TableHead>Title</TableHead>+ <TableHead>Challenge</TableHead><TableHead>Votes</TableHead><TableHead>Date</TableHead></TableRow>@@ -35,13 +35,18 @@ export async function SharedSolutionsTab({ userId }: { userId: string }) {<TableBody>{solutions.map((solution) => (<TableRow key={solution.id}>+ <TableCell className="font-medium underline">+ <Link href={`/challenge/${solution.challenge?.slug}/solutions/${solution.id}`}>+ {solution.title}+ </Link>+ </TableCell><TableCell className="font-medium underline"><Link href={`/challenge/${solution.challenge?.slug}`}>{solution.challenge?.name}</Link></TableCell><TableCell>{solution._count.vote}</TableCell>- <TableCell className="font-medium underline">+ <TableCell className="font-medium">{Boolean(solution.createdAt) && getRelativeTime(solution.createdAt)}</TableCell></TableRow>