Skip to content

Commit a12060d

Browse files
Elecwebappleboy
authored andcommitted
set prop types for render, theme, size and badge from string to oneOf (#236)
1 parent 12705dd commit a12060d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ const propTypes = {
88
onloadCallback: PropTypes.func,
99
verifyCallback: PropTypes.func,
1010
expiredCallback: PropTypes.func,
11-
render: PropTypes.string,
11+
render: PropTypes.oneOf(['onload', 'explicit']),
1212
sitekey: PropTypes.string,
13-
theme: PropTypes.string,
13+
theme: PropTypes.oneOf(['light', 'dark']),
1414
type: PropTypes.string,
1515
verifyCallbackName: PropTypes.string,
1616
expiredCallbackName: PropTypes.string,
17-
size: PropTypes.string,
17+
size: PropTypes.oneOf(['invisible', 'compact', 'normal']),
1818
tabindex: PropTypes.string,
1919
hl: PropTypes.string,
20-
badge: PropTypes.string,
20+
badge: PropTypes.oneOf(['bottomright', 'bottomleft', 'inline']),
2121
};
2222

2323
const defaultProps = {

0 commit comments

Comments
 (0)