aboutsummaryrefslogtreecommitdiff
path: root/src/components/rich_content
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2022-04-12 18:10:19 +0300
committerHenry Jameson <me@hjkos.com>2022-04-12 18:10:19 +0300
commitd175e86901dda5b54f7caad744f78f347332f821 (patch)
tree418d108379835ae88af01385294fa9b9ec0f502b /src/components/rich_content
parentc2a4051d72683759344c5de4dcb8d6178198e427 (diff)
fix hashtags by explicitly putting attributes
Diffstat (limited to 'src/components/rich_content')
-rw-r--r--src/components/rich_content/rich_content.jsx7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/components/rich_content/rich_content.jsx b/src/components/rich_content/rich_content.jsx
index 41e287e4..ca075270 100644
--- a/src/components/rich_content/rich_content.jsx
+++ b/src/components/rich_content/rich_content.jsx
@@ -28,6 +28,10 @@ import './rich_content.scss'
*/
export default {
name: 'RichContent',
+ components: {
+ MentionsLine,
+ HashtagLink
+ },
props: {
// Original html content
html: {
@@ -86,7 +90,8 @@ export default {
if (!encounteredTextReverse) {
lastTags.push(linkData)
}
- return <HashtagLink { ...linkData }/>
+ const { url, tag, content } = linkData
+ return <HashtagLink url={url} tag={tag} content={content}/>
}
const renderMention = (attrs, children) => {