diff options
author | Vitaly Takmazov | 2018-06-20 10:15:31 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-13 10:37:52 +0300 |
commit | fd18ac5cd96f76a39de57bb6a877d3f0faf7c528 (patch) | |
tree | 21744e1a82b15213793b3b81489afa02d5a776f5 /vnext/src/components/Types.js | |
parent | 95f9a337435091188b02d4545b7507f47fef34cc (diff) |
refactoring
Diffstat (limited to 'vnext/src/components/Types.js')
-rw-r--r-- | vnext/src/components/Types.js | 7 |
1 files changed, 7 insertions, 0 deletions
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 +}); |