diff options
author | Vitaly Takmazov | 2019-07-26 13:22:00 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-13 10:37:55 +0300 |
commit | f707d3d524d8d16e2bb780764f029d85fc57ecc0 (patch) | |
tree | 1580074a665bd16c9744b5749c2a777700c5ae73 /vnext/src/ui/PM.js | |
parent | 6016b0888e77497e15384f1cd024eb42672129a4 (diff) |
prop-types -> jsdoc
Diffstat (limited to 'vnext/src/ui/PM.js')
-rw-r--r-- | vnext/src/ui/PM.js | 7 |
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 }; +*/ |