interface: render URLs in mentiontext

This commit is contained in:
Matilde Park 2021-02-11 13:39:29 -05:00
parent ba839646c8
commit 27be5dd254
2 changed files with 3 additions and 1 deletions

View File

@ -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>
)}

View File

@ -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;
}, '')}