Connect, collaborate, and grow with a community of TypeScript developers
fix: profile not rendering markdown
bautistaaa5eb302febde8
diff --git a/apps/web/src/app/[locale]/[username]/_components/dashboard/overview-tab.tsx b/apps/web/src/app/[locale]/[username]/_components/dashboard/overview-tab.tsxindex 55eab10a..97f88a8f 100644--- a/apps/web/src/app/[locale]/[username]/_components/dashboard/overview-tab.tsx+++ b/apps/web/src/app/[locale]/[username]/_components/dashboard/overview-tab.tsx@@ -1,7 +1,6 @@-import { ReactMarkdown } from 'react-markdown/lib/react-markdown';-import type { User } from '@repo/db/types';import { Card, CardContent, CardHeader, CardTitle } from '@repo/ui/components/card';+import { Markdown } from '@repo/ui/components/markdown';interface Props {// TODO: how do do this union type with just letting prisma halp@@ -20,7 +19,7 @@ export async function OverviewTab({ user }: Props) {</CardHeader><CardContent><div className="w-full text-sm">- {Boolean(hasBio) && <ReactMarkdown>{user.bio}</ReactMarkdown>}+ {Boolean(hasBio) && <Markdown>{user.bio}</Markdown>}{Boolean(!hasBio) && (<p className="text-muted-foreground">{user.name} does not have a bio.</p>)}