aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/ui/PM.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-07-26 13:22:00 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:55 +0300
commitf707d3d524d8d16e2bb780764f029d85fc57ecc0 (patch)
tree1580074a665bd16c9744b5749c2a777700c5ae73 /vnext/src/ui/PM.js
parent6016b0888e77497e15384f1cd024eb42672129a4 (diff)
prop-types -> jsdoc
Diffstat (limited to 'vnext/src/ui/PM.js')
-rw-r--r--vnext/src/ui/PM.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/vnext/src/ui/PM.js b/vnext/src/ui/PM.js
index 08db523f..a25580e5 100644
--- a/vnext/src/ui/PM.js
+++ b/vnext/src/ui/PM.js
@@ -1,7 +1,5 @@
import React from 'react';
-import { UserType, MessageType } from './Types';
-
import Avatar from './Avatar';
import { format } from '../utils/embed';
import { bubbleStyle, chatItemStyle } from './helpers/BubbleStyle';
@@ -13,7 +11,7 @@ function PM(props) {
<div style={chatItemStyle(props.visitor, chat)}>
<Avatar user={chat.user} />
<div style={bubbleStyle(props.visitor, chat)}>
- <p dangerouslySetInnerHTML={{ __html: format(chat.body) }} />
+ <p dangerouslySetInnerHTML={{ __html: format(chat.body, 0, false) }} />
</div>
</div>
</li>
@@ -21,8 +19,9 @@ function PM(props) {
}
export default React.memo(PM);
-
+/*
PM.propTypes = {
chat: MessageType.isRequired,
visitor: UserType.isRequired
};
+*/