From f470636a70943a8ecad8bddc791a1c2dddd28e1e Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sat, 4 May 2019 21:13:12 +0300 Subject: Components -> UI --- vnext/src/ui/Types.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 vnext/src/ui/Types.js (limited to 'vnext/src/ui/Types.js') diff --git a/vnext/src/ui/Types.js b/vnext/src/ui/Types.js new file mode 100644 index 00000000..9bf7b513 --- /dev/null +++ b/vnext/src/ui/Types.js @@ -0,0 +1,15 @@ +import PropTypes from 'prop-types'; + +export const UserType = PropTypes.shape({ + uid: PropTypes.number.isRequired, + uname: PropTypes.string, + avatar: PropTypes.string, + uri: PropTypes.string +}); + +export const MessageType = PropTypes.shape({ + mid: PropTypes.number, + user: UserType, + timestamp: PropTypes.string.isRequired, + body: PropTypes.string +}); -- cgit v1.2.3