NoteContent can linkify any kind, add TestApp component and "Testing Your Changes" to CONTEXT.md

This commit is contained in:
Alex Gleason committed 2025-06-01 08:39:33 -05:00
1 parent ee42c84171
commit 830d806933
4 files changed
+158 -16

No files matched your search

+2 -3
View File
@@ -10,7 +10,8 @@ interface NoteContentProps {
className?: string;
}
export function NoteContent({
/** Parses content of text note events so that URLs and hashtags are linkified. */
export function NoteContent({
event,
className,
}: NoteContentProps) {
@@ -18,8 +19,6 @@ export function NoteContent({
// Process the content to render mentions, links, etc.
useEffect(() => {
if (!event || event.kind !== 1) return;
const processContent = async () => {
const text = event.content;