From fd18ac5cd96f76a39de57bb6a877d3f0faf7c528 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 20 Jun 2018 10:15:31 +0300 Subject: refactoring --- vnext/src/components/Types.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'vnext/src/components/Types.js') diff --git a/vnext/src/components/Types.js b/vnext/src/components/Types.js index 2bd07458..6fba9fd3 100644 --- a/vnext/src/components/Types.js +++ b/vnext/src/components/Types.js @@ -4,3 +4,10 @@ export const UserType = PropTypes.shape({ uid: PropTypes.number.isRequired, uname: PropTypes.string.isRequired }); + +export const MessageType = PropTypes.shape({ + mid: PropTypes.number.isRequired, + user: UserType, + timestamp: PropTypes.string.isRequired, + body: PropTypes.string +}); -- cgit v1.2.3