mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-09-21 23:47:35 +03:00
interface: render URLs in mentiontext
This commit is contained in:
parent
ba839646c8
commit
27be5dd254
@ -64,7 +64,7 @@ export function CommentItem(props: CommentItemProps) {
|
||||
</Text>
|
||||
</Link>
|
||||
<ClickBox display="inline-block" color="red" onClick={onDelete}>
|
||||
Delete
|
||||
<Text color='red'>Delete</Text>
|
||||
</ClickBox>
|
||||
</Box>
|
||||
)}
|
||||
|
@ -23,6 +23,8 @@ export function MentionText(props: MentionTextProps) {
|
||||
return accum + c.text;
|
||||
} else if ('mention' in c) {
|
||||
return accum + `[~${c.mention}]`;
|
||||
} else if ('url' in c) {
|
||||
return accum + `\n ${c.url}`;
|
||||
}
|
||||
return accum;
|
||||
}, '')}
|
||||
|
Loading…
Reference in New Issue
Block a user