InviteesTable.tsx 743 B

123456789101112131415161718192021222324252627282930313233
  1. import React, { PureComponent } from 'react';
  2. import { Invitee } from 'app/types';
  3. import InviteeRow from './InviteeRow';
  4. export interface Props {
  5. invitees: Invitee[];
  6. }
  7. export default class InviteesTable extends PureComponent<Props> {
  8. render() {
  9. const { invitees } = this.props;
  10. return (
  11. <table className="filter-table form-inline">
  12. <thead>
  13. <tr>
  14. <th>Email</th>
  15. <th>Name</th>
  16. <th />
  17. <th style={{ width: '34px' }} />
  18. </tr>
  19. </thead>
  20. <tbody>
  21. {invitees.map((invitee, index) => {
  22. return <InviteeRow key={`${invitee.id}-${index}`} invitee={invitee} />;
  23. })}
  24. </tbody>
  25. </table>
  26. );
  27. }
  28. }