|
@ -9,15 +9,19 @@ export default class SignedInList extends React.Component { |
|
|
this.componentWillUnmount = this.componentWillUnmount.bind(this); |
|
|
this.componentWillUnmount = this.componentWillUnmount.bind(this); |
|
|
this.tick = this.tick.bind(this); |
|
|
this.tick = this.tick.bind(this); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
componentDidMount () { |
|
|
componentDidMount () { |
|
|
this.timer = setInterval(this.tick, 50); |
|
|
this.timer = setInterval(this.tick, 50); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
componentWillUnmount () { |
|
|
componentWillUnmount () { |
|
|
clearInterval(this.timer); |
|
|
clearInterval(this.timer); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
tick () { |
|
|
tick () { |
|
|
this.setState({tick: this.state.tick++}); |
|
|
this.setState({tick: this.state.tick++}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
render () { |
|
|
render () { |
|
|
let members = this.props.members.map((member) => { |
|
|
let members = this.props.members.map((member) => { |
|
|
return <ListItem key={member.id} primaryText={member.text} secondaryText={`${member.purpose} – ${member.at.fromNow()}`} /> |
|
|
return <ListItem key={member.id} primaryText={member.text} secondaryText={`${member.purpose} – ${member.at.fromNow()}`} /> |
|
|