import {Location} from 'history'; import moment from 'moment'; import Link from 'sentry/components/links/link'; import ResultGrid from 'sentry/components/resultGrid'; import {t} from 'sentry/locale'; import AsyncView from 'sentry/views/asyncView'; export const prettyDate = function (x) { return moment(x).format('ll'); }; type Row = { dateJoined: string; email: string; id: string; lastLogin: string; username: string; }; type Props = { location: Location; } & AsyncView['props']; export default class AdminUsers extends AsyncView { getRow = (row: Row) => [ {row.username}
{row.email !== row.username && {row.email}} , {prettyDate(row.dateJoined)} , {prettyDate(row.lastLogin)} , ]; render() { const columns = [ User, Joined , Last Login , ]; return (

{t('Users')}

); } }