From 7f25b0f261b5a5fc2696054004fb24673375b91b Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 6 Jul 2018 01:32:43 +0300 Subject: Proptypes & eslint --- vnext/src/components/PM.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'vnext/src/components/PM.js') 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 -- cgit v1.2.3