Files
twenty/front/src/modules/ui/table/components/TableCell.tsx
T
ThaïsandGitHub 18e210b29b feat: add active and disabled object tables to settings (#1885)
* feat: add active and disabled object tables to settings

Closes #1799, Closes #1800

* refactor: add align prop to TableCell
2023-10-05 22:19:08 +02:00

19 lines
544 B
TypeScript

import styled from '@emotion/styled';
const StyledTableCell = styled.div<{ align?: 'left' | 'center' | 'right' }>`
align-items: center;
color: ${({ theme }) => theme.font.color.secondary};
display: flex;
height: ${({ theme }) => theme.spacing(8)};
justify-content: ${({ align }) =>
align === 'right'
? 'flex-end'
: align === 'center'
? 'center'
: 'flex-start'};
padding: 0 ${({ theme }) => theme.spacing(2)};
text-align: ${({ align }) => align ?? 'left'};
`;
export { StyledTableCell as TableCell };