Skip to content

Commit 88e0905

Browse files
committed
fix propType of children
1 parent 1009f35 commit 88e0905

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/frame.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default class Frame extends React.Component {
1616
}
1717

1818
Frame.propTypes = {
19-
children: PropTypes.element.isRequired,
19+
children: PropTypes.arrayOf(PropTypes.element).isRequired,
2020
component: PropTypes.string,
2121
delay: PropTypes.number,
2222
onRender: PropTypes.func

lib/keyframes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export default class Keyframes extends React.Component {
7070
}
7171

7272
Keyframes.propTypes = {
73-
children: PropTypes.element.isRequired,
73+
children: PropTypes.arrayOf(PropTypes.element).isRequired,
7474
component: PropTypes.string,
7575
onStart: PropTypes.func,
7676
onEnd: PropTypes.func

0 commit comments

Comments
 (0)