Skip to content

Commit 5c1044e

Browse files
author
Lucas Bento
committed
Fix oneOf on imageWidth & imageHeight
1 parent 4a3a30e commit 5c1044e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ class Thumbnail extends PureComponent {
4646
...ImageBackground.propTypes,
4747
url: PropTypes.string.isRequired,
4848
type: PropTypes.oneOf(Object.keys(TYPES)),
49-
imageWidth: PropTypes.oneOf([
49+
imageWidth: PropTypes.oneOfType([
5050
PropTypes.number,
5151
PropTypes.string,
5252
]),
53-
imageHeight: PropTypes.oneOf([
53+
imageHeight: PropTypes.oneOfType([
5454
PropTypes.number,
5555
PropTypes.string,
5656
]),

0 commit comments

Comments
 (0)