Reac front end for psicometric app

MailTable.jsx 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. import * as React from 'react';
  2. import Table from '@mui/material/Table';
  3. import TableBody from '@mui/material/TableBody';
  4. import TableCell from '@mui/material/TableCell';
  5. import TableContainer from '@mui/material/TableContainer';
  6. import TableHead from '@mui/material/TableHead';
  7. import TableRow from '@mui/material/TableRow';
  8. import Paper from '@mui/material/Paper';
  9. import { RemoveSharp, DisabledByDefault } from '@mui/icons-material'
  10. function createData(name, calories, fat) {
  11. return { name, calories, fat, icon : <DisabledByDefault color="primary"/>};
  12. }
  13. const rows = [
  14. createData('Frozen yoghurt', 159, 6.0, ),
  15. createData('Ice cream sandwich', 237, 9.0),
  16. createData('Eclair', 262, 16.0, ),
  17. createData('Cupcake', 305, 3.7,),
  18. createData('Gingerbread', 356,21),
  19. ];
  20. export function MailTable() {
  21. return (
  22. <TableContainer component={Paper}>
  23. <Table aria-label="simple table">
  24. <TableHead>
  25. <TableRow>
  26. <TableCell>Correo</TableCell>
  27. <TableCell align="right">Nombres</TableCell>
  28. <TableCell align="right">Apellidos</TableCell>
  29. <TableCell align="right"></TableCell>
  30. </TableRow>
  31. </TableHead>
  32. <TableBody>
  33. {rows.map((row) => (
  34. <TableRow key={row.name} sx={{ '&:last-child td, &:last-child th': { border: 0 } }} >
  35. <TableCell component="th" scope="row">
  36. {row.name}
  37. </TableCell>
  38. <TableCell align="right">{row.calories}</TableCell>
  39. <TableCell align="right">{row.fat}</TableCell>
  40. <TableCell align="right">{row.icon}</TableCell>
  41. </TableRow>
  42. ))}
  43. </TableBody>
  44. </Table>
  45. </TableContainer>
  46. );
  47. }