blob: 9bf7b513f2d0bf6cfb3616dd90cdae38c6e2fe1e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
});
|