Ghost/ghost/admin/app/components/gh-members-list-item.js
Kevin Ansfield ab8334dae2 Refactored <GhMembersListItem>
no issue

- switched to using a glimmer component
  - cleaned up property access in the template
  - used helpers for basic display logic in the template
- removed unused computed properties, aliases, and injected services
2020-02-27 12:17:48 +00:00

9 lines
243 B
JavaScript

import Component from '@glimmer/component';
import moment from 'moment';
export default class GhMembersListItemComponent extends Component {
get memberSince() {
return moment(this.args.member.createdAtUTC).from(moment());
}
}