From 15aa853da5f6be8a95970d73a700afc6b626c572 Mon Sep 17 00:00:00 2001 From: hmhealey Date: Mon, 14 Sep 2015 11:48:07 -0400 Subject: Removed all calls to textToJsx and replaced them with calls to TextFormatting --- web/react/components/rhs_comment.jsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'web/react/components/rhs_comment.jsx') diff --git a/web/react/components/rhs_comment.jsx b/web/react/components/rhs_comment.jsx index f1a90102c..ed136c01f 100644 --- a/web/react/components/rhs_comment.jsx +++ b/web/react/components/rhs_comment.jsx @@ -12,6 +12,7 @@ var FileAttachmentList = require('./file_attachment_list.jsx'); var Client = require('../utils/client.jsx'); var AsyncClient = require('../utils/async_client.jsx'); var ActionTypes = Constants.ActionTypes; +var TextFormatting = require('../utils/text_formatting.jsx'); var twemoji = require('twemoji'); export default class RhsComment extends React.Component { @@ -84,7 +85,6 @@ export default class RhsComment extends React.Component { type = 'Comment'; } - var message = Utils.textToJsx(post.message); var timestamp = UserStore.getCurrentUser().update_at; var loading; @@ -202,7 +202,13 @@ export default class RhsComment extends React.Component {
-

{loading}{message}

+

+ {loading} + +

{fileAttachment}
-- cgit v1.2.3-1-g7c22