Browse Source

Ascending ordering for sign in time.

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

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

@ -23,7 +23,11 @@ export default class SignedInList extends React.Component {
}
render () {
let members = this.props.members.map((member) => {
const members = this.props.members.sort((l, r) => {
return l.at.diff(r.at);
})
.reverse()
.map((member) => {
return <ListItem key={member.id} primaryText={member.text} secondaryText={`${member.purpose}${member.at.fromNow()}`} />
});

Loading…
Cancel
Save