Skip to content

Commit 35e13d4

Browse files
committed
Open all help links in new window to not interrupt app creation
1 parent 83a65a8 commit 35e13d4

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/pages/CreateApp/HelpWidget.tsx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,17 @@ export const HelpWidget: FC<HelpWidgetProps> = ({ selectedTemplateId, isExpanded
6262
<div className="flex-1 overflow-y-auto p-4">
6363
{/* prose classes https://github.com/tailwindlabs/tailwindcss-typography */}
6464
<div className="prose prose-sm dark:prose-invert max-w-none">
65-
<ReactMarkdown>{markdown}</ReactMarkdown>
65+
<ReactMarkdown
66+
components={{
67+
a: ({ href, children }) => (
68+
<a href={href} target="_blank" rel="noopener noreferrer">
69+
{children}
70+
</a>
71+
),
72+
}}
73+
>
74+
{markdown}
75+
</ReactMarkdown>
6676
</div>
6777
</div>
6878
</div>

0 commit comments

Comments
 (0)