All files / src/lookup/Section Section.js

100% Statements 4/4
50% Branches 1/2
100% Functions 2/2
100% Lines 4/4

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            1x       1x 1x             3x  
import React, { Component } from 'react';
import { propTypes } from './props/propTypes';
import { Container, Box } from '@zohodesk/components/lib/Layout';
import style from './LookupSection.module.css';
export default class Section extends Component {
  constructor(props) {
    super(props);
  }
 
  render() {
    let { alignBox, className } = this.props;
    return (
      <Container alignBox={alignBox} className={`${style.section} ${className ? className : ''}`}>
        <Box flexible>{this.props.children}</Box>
      </Container>
    );
  }
}
Section.propTypes = propTypes;