1
0
mirror of https://github.com/fspc/workstand.git synced 2025-02-23 09:13:23 -05:00

Add propTypes.

This commit is contained in:
Drew Larson 2017-01-01 22:41:55 -06:00
parent 6cf242d62e
commit 3e3db58953

View File

@ -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 };