Files
service-aware-frontend/pkgs/ui/src/components/table/style.tsx
sara-pervana 72da175bc2
All checks were successful
checks / test (pull_request) Successful in 2m45s
checks-impure / test (pull_request) Successful in 25s
ran format command
2023-11-21 18:04:58 +01:00

24 lines
659 B
TypeScript

import { styled } from "@mui/material/styles";
import TableCell, { tableCellClasses } from "@mui/material/TableCell";
import TableRow from "@mui/material/TableRow";
export const StyledTableCell = styled(TableCell)(({ theme }) => ({
[`&.${tableCellClasses.head}`]: {
backgroundColor: theme.palette.common.black,
color: theme.palette.common.white,
},
[`&.${tableCellClasses.body}`]: {
fontSize: 14,
},
}));
export const StyledTableRow = styled(TableRow)(({ theme }) => ({
"&:nth-of-type(odd)": {
backgroundColor: theme.palette.action.hover,
},
// hide last border
"&:last-child td, &:last-child th": {
border: 0,
},
}));