All files / src/components/Form/Form index.jsx

100% Statements 3/3
100% Branches 0/0
100% Functions 1/1
100% Lines 2/2
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          5x                 3x                    
import React from 'react';
import pure from 'recompose/pure';
import { Form as FormsyForm } from 'formsy-react';
import PropTypes from 'prop-types';
 
const Form = (props) => <div className={props.className}>
  <FormsyForm onSubmit={props.onSubmit}
      onChange={props.onChange}
      onValid={props.onValid}
      onInvalid={props.onInvalid}>
    {props.children}
  </FormsyForm>
</div>;
 
Form.propTypes = {
  className: PropTypes.string,
  onSubmit: PropTypes.func,
  onChange: PropTypes.func,
  onValid: PropTypes.func,
  onInvalid: PropTypes.func,
  children: PropTypes.node,
};
 
export default pure(Form);