All files / components/steps/step index.js

0% Statements 0/41
0% Branches 0/33
0% Functions 0/10
0% Lines 0/8
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23                                             
import React from 'react'
import PropTypes from 'prop-types'
import StyledStep from './styledStep'
 
class Step extends React.Component {
 
  render () {
    return (
      <StyledStep>
        {this.props.children}
      </StyledStep>
    );
  }
}
 
Step.propTypes = {
  label: PropTypes.string.isRequired,
  children: PropTypes.element.isRequired
}
 
export default Step