From 3e3db58953e58ab571abfabb4687e12a2a684b76 Mon Sep 17 00:00:00 2001 From: Drew Larson Date: Sun, 1 Jan 2017 22:41:55 -0600 Subject: [PATCH] Add propTypes. --- bikeshop_project/assets/js/components/SignedInList.jsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bikeshop_project/assets/js/components/SignedInList.jsx b/bikeshop_project/assets/js/components/SignedInList.jsx index 1991a20..279e121 100644 --- a/bikeshop_project/assets/js/components/SignedInList.jsx +++ b/bikeshop_project/assets/js/components/SignedInList.jsx @@ -3,6 +3,14 @@ import { ListItem } from 'material-ui/List'; import moment from 'moment'; export default class SignedInList extends React.Component { + static propTypes = { + members: PropTypes.arrayOf(PropTypes.shape({ + id: PropTypes.number, + purpose: PropTypes.string, + at: PropTypes.instanceOf(moment), + })), + } + constructor(props) { super(props); this.state = { tick: 0 };