Skip to content
This repository was archived by the owner on Jun 23, 2023. It is now read-only.

Commit e789f48

Browse files
committed
Fixing propTypes
1 parent c9fc606 commit e789f48

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-nice-input-password",
3-
"version": "2.0.1",
3+
"version": "2.0.2",
44
"description": "React input password component",
55
"main": "dist/react-nice-input-password.js",
66
"style": "dist/react-nice-input-password.css",

src/NiceInputPassword.jsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,13 @@ const propTypes = {
1919
warningClassName: PropTypes.string,
2020
successClassName: PropTypes.string,
2121
securityLevels: PropTypes.arrayOf(PropTypes.shape({
22-
descriptionLabel: PropTypes.string.isRequired,
22+
descriptionLabel: PropTypes.oneOfType([
23+
PropTypes.string,
24+
PropTypes.element,
25+
]).isRequired,
2326
validator: PropTypes.oneOfType([
2427
PropTypes.func,
25-
PropTypes.element,
28+
PropTypes.object,
2629
]).isRequired,
2730
})),
2831
onChange: PropTypes.func,

0 commit comments

Comments
 (0)