grafana/public/app/features/invites/InviteesTable.tsx

34 lines
743 B
TypeScript
Raw Normal View History

2018-12-14 06:49:14 -06:00
import React, { PureComponent } from 'react';
2018-10-03 02:43:10 -05:00
import { Invitee } from 'app/types';
2018-12-14 06:49:14 -06:00
import InviteeRow from './InviteeRow';
2018-10-03 02:43:10 -05:00
export interface Props {
invitees: Invitee[];
}
export default class InviteesTable extends PureComponent<Props> {
render() {
2018-12-14 06:49:14 -06:00
const { invitees } = this.props;
2018-10-03 02:43:10 -05:00
return (
<table className="filter-table form-inline">
<thead>
<tr>
<th>Email</th>
<th>Name</th>
<th />
<th style={{ width: '34px' }} />
</tr>
</thead>
<tbody>
{invitees.map((invitee, index) => {
2018-12-14 06:49:14 -06:00
return <InviteeRow key={`${invitee.id}-${index}`} invitee={invitee} />;
2018-10-03 02:43:10 -05:00
})}
</tbody>
</table>
);
}
}