aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/components/PM.js
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/src/components/PM.js')
-rw-r--r--vnext/src/components/PM.js11
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