mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2026-12-05 16:33:36 +00:00
NoteContent can linkify any kind, add TestApp component and "Testing Your Changes" to CONTEXT.md
This commit is contained in:
4 files changed
+158
-16
No files matched your search
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user