aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/components/Message.js
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/src/components/Message.js')
-rw-r--r--vnext/src/components/Message.js9
1 files changed, 2 insertions, 7 deletions
diff --git a/vnext/src/components/Message.js b/vnext/src/components/Message.js
index e03935ce..8e060aa8 100644
--- a/vnext/src/components/Message.js
+++ b/vnext/src/components/Message.js
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import moment from 'moment';
-import { UserType } from './Types';
+import { UserType, MessageType } from './Types';
import Icon from './Icon';
import Avatar from './Avatar';
@@ -104,12 +104,7 @@ function Tags(props) {
}
Message.propTypes = {
- data: PropTypes.shape({
- mid: PropTypes.number.isRequired,
- user: UserType,
- timestamp: PropTypes.string.isRequired,
- body: PropTypes.string
- }),
+ data: MessageType,
children: PropTypes.node
};