diff options
author | 2018-07-06 01:32:43 +0300 | |
---|---|---|
committer | 2023-01-13 10:37:53 +0300 | |
commit | 7f25b0f261b5a5fc2696054004fb24673375b91b (patch) | |
tree | 38ee591e176b4799e39eff7a16f1950e017e7bb4 /vnext/src/components/PM.js | |
parent | 88732ba8c06c23a93f7248b6eabc182f38be3d33 (diff) |
Proptypes & eslint
Diffstat (limited to 'vnext/src/components/PM.js')
-rw-r--r-- | vnext/src/components/PM.js | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/vnext/src/components/PM.js b/vnext/src/components/PM.js index 7684c6ac..61e28e9a 100644 --- a/vnext/src/components/PM.js +++ b/vnext/src/components/PM.js @@ -1,5 +1,7 @@ import React from 'react'; +import { UserType, MessageType } from './Types'; + import Avatar from './Avatar'; import { format } from '../utils/embed'; @@ -25,7 +27,7 @@ function bubbleStyle(me, msg) { background: background, color: color, padding: '0 12px' - } + }; } function chatItemStyle(me, msg) { @@ -38,5 +40,10 @@ function chatItemStyle(me, msg) { display: 'flex', flexDirection: 'column', alignItems: alignment - } + }; +} + +PM.propTypes = { + chat: MessageType.isRequired, + visitor: UserType.isRequired }
\ No newline at end of file |