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

Formatting.

This commit is contained in:
Drew Larson 2017-01-01 17:33:44 -06:00
parent 92a3725b18
commit 3aafeabe09

View File

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