# All files / components/Table/styles TableCell.js

0% Statements 0/14
0% Branches 0/4
0% Functions 0/1
0% Lines 0/7

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28

     import React from 'react';
    import PropTypes from 'prop-types';
    import styled from 'styled-components';
    import get from 'extensions/themeGet';

    const TableCell = styled.td`
      background: transparent;
      text-align: left;
      border-right: ${get('thicknesses.normal')} solid ${get('colors.shadow.light')};
      white-space: nowrap;
      padding: ${get('spacing.small')} ${get('spacing.medium')};
      transition: 0.2s ease all;

      &:last-child {
        border-right: none;
      }
    `;

    TableCell.defaultProps = {
      children: String.fromCharCode(160), // &nbsp;
    };

    TableCell.Small = styled(TableCell)`
      padding: 3px 8px;
    `;

    export default TableCell;