diff --git a/src/components/TableList/index.js b/src/components/TableList/index.js new file mode 100644 index 0000000..d18ede6 --- /dev/null +++ b/src/components/TableList/index.js @@ -0,0 +1,115 @@ +import React from 'react'; +import { styled } from '@mui/material/styles'; +import { makeStyles } from '@mui/styles'; +import Button from '@mui/material/Button'; +import Table from '@mui/material/Table'; +import TableBody from '@mui/material/TableBody'; +import TableCell from '@mui/material/TableCell'; +import TableHead from '@mui/material/TableHead'; +import TableRow from '@mui/material/TableRow'; + +const useStyles = makeStyles({ + headColor: { + display: 'revert' + }, + rowStyle: { + color: '#007aff' + } +}); + +const TableContainer = styled('div')( + () => ` + td, + th { + border-right: 1px solid #D3D4D5; + text-align: left; + padding: 18px 44px; + white-space: nowrap; + } + th { + background-color: #E5E7EB; + } + ` +); + +const StyledTableRow = styled(TableRow)(({ theme }) => ({ + '&:nth-of-type(even)': { + backgroundColor: theme.palette.action.hover + } +})); + +function createData(name, type, quantity, pick, put, adjust) { + return { name, type, quantity, pick, put, adjust }; +} +const rows = [ + createData('Name', '', '', 'Pick', 'Put', 'Adjust'), + createData('Name', '', '', 'Pick', 'Put', 'Adjust'), + createData('Name', '', '', 'Pick', 'Put', 'Adjust'), + createData('Name', '', '', 'Pick', 'Put', 'Adjust'), + createData('Name', '', '', 'Pick', 'Put', 'Adjust') +]; + +export default function TableList() { + const classes = useStyles(); + return ( + + + + + Widget Name + Type-color-size + Quantity + Pick + Put + Adjust + + + + {rows.map((row) => ( + + {row.name} + {row.type} + {row.quantity} + + + + + + + + + + + ))} + +
+
+ ); +}