text: import BaseField from 'uniforms/BaseField';
  import Button from 'antd/lib/button';
  import React from 'react';
  
  const SubmitField = (
    {inputRef, value, ...props},
    {
      uniforms: {
        error,
        state: {disabled}
      }
    }
  ) => (
    <Button disabled={!!(error || disabled)} htmlType="submit" ref={inputRef} type="primary" {...props}>
      {value}
    </Button>
  );
  SubmitField.contextTypes = BaseField.contextTypes;
  SubmitField.defaultProps = {value: 'Submit'};
  
  export default SubmitField;
  