Skip to content

Commit 132e2cf

Browse files
committed
Fix incorrect PropTypes "required" to be "isRequired"
1 parent 607b218 commit 132e2cf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dist/scripts/switch.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/scripts/switch.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import PropTypes from 'prop-types';
22
import React, {Component} from 'react';
33

44
const propTypes = {
5-
on: PropTypes.bool.required,
6-
onClick: PropTypes.func.required,
5+
on: PropTypes.bool.isRequired,
6+
onClick: PropTypes.func.isRequired,
77
enabled: PropTypes.bool,
88
className: PropTypes.string
99
};

0 commit comments

Comments
 (0)