Browse Source

Add propTypes.

feature/python-error-tracking
Drew Larson 8 years ago
parent
commit
3e3db58953
  1. 8
      bikeshop_project/assets/js/components/SignedInList.jsx

8
bikeshop_project/assets/js/components/SignedInList.jsx

@ -3,6 +3,14 @@ import { ListItem } from 'material-ui/List';
import moment from 'moment'; import moment from 'moment';
export default class SignedInList extends React.Component { 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) { constructor(props) {
super(props); super(props);
this.state = { tick: 0 }; this.state = { tick: 0 };

Loading…
Cancel
Save