aboutsummaryrefslogblamecommitdiffstats
path: root/webui/src/pages/list/List.tsx
blob: c1cae1221ac8b5c6722003e626d2900fafe85c98 (plain) (tree)
1
2
3
4
5
6
7
8
9
10

                          

                                                              
 
                              
                                                        
 

                                       
          






                                               
    
 
 
                    
import React from 'react';

import Table from '@material-ui/core/Table/Table';
import TableBody from '@material-ui/core/TableBody/TableBody';

import BugRow from './BugRow';
import { BugListFragment } from './ListQuery.generated';

type Props = { bugs: BugListFragment };
function List({ bugs }: Props) {
  return (
    <Table>
      <TableBody>
        {bugs.edges.map(({ cursor, node }) => (
          <BugRow bug={node} key={cursor} />
        ))}
      </TableBody>
    </Table>
  );
}

export default List;