Skip to content

Commit

Permalink
fix(form): remove unused default props definition (fix: #4335) (#4349)
Browse files Browse the repository at this point in the history
  • Loading branch information
JeromeDeLeon authored and mxschmitt committed Aug 26, 2019
1 parent bdf9343 commit b813842
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/FormCheckLabel.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ const propTypes = {
htmlFor: PropTypes.string,
};

const defaultProps = {
type: 'checkbox',
};

const FormCheckLabel = React.forwardRef(
({ bsPrefix, bsCustomPrefix, className, htmlFor, ...props }, ref) => {
const { controlId, custom } = useContext(FormContext);
Expand All @@ -45,6 +41,5 @@ const FormCheckLabel = React.forwardRef(

FormCheckLabel.displayName = 'FormCheckLabel';
FormCheckLabel.propTypes = propTypes;
FormCheckLabel.defaultProps = defaultProps;

export default FormCheckLabel;

0 comments on commit b813842

Please sign in to comment.