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

100% Statements 3/3
100% Branches 0/0
100% Functions 0/0
100% Lines 3/3

    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

    5x

    5x

    5x

     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 = TableCell.extend`
      padding: 3px 8px;
    `;

    export default TableCell;