All files / src/setup/table/TableHead TableHead.js

100% Statements 5/5
100% Branches 0/0
100% Functions 2/2
100% Lines 5/5

Press n or j to go to the next uncovered block, b, p or k for the previous block.

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 29 30 31 32 33 34 35 36 37                1x       1x 1x                           1x 1x                
import React from 'react';
import { defaultProps } from './props/defaultProps';
import { propTypes } from './props/propTypes';
import { Container, Box } from '@zohodesk/components/lib/Layout';
import style from './SetupTableHead.module.css';
 
export default class TableHead extends React.Component {
  constructor(props) {
    super(props);
  }
 
  render() {
    let { children, className, onMouseEnter, onMouseLeave, dataId } = this.props;
    return (
      <Box
        className={`${style.container} ${className} `}
        dataId={dataId}
        onMouseEnter={onMouseEnter}
        onMouseLeave={onMouseLeave}
      >
        <Container alignBox='row' align='vertical' className={style.subContainer}>
          {children}
        </Container>
      </Box>
    );
  }
}
TableHead.defaultProps = defaultProps;
TableHead.propTypes = propTypes;
 
// if (__DOCS__) {
//   TableHead.docs = {
//     componentGroup: 'Table',
//     folderName: 'Setup'
//   };
// }