Skip to content

Commit bab88f6

Browse files
committed
fixed proptypes
1 parent 14b93e9 commit bab88f6

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

lib/components/App.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,5 @@ export const App = ({ children, port }) => <app port={port}>{children}</app>;
55

66
App.propTypes = {
77
port: PropTypes.number,
8-
children: PropTypes.oneOfType(
9-
PropTypes.arrayOf(PropTypes.node),
10-
PropTypes.node
11-
).isRequired,
8+
children: PropTypes.node,
129
};

lib/components/Router.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,5 @@ Router.propTypes = {
2323
caseSensitive: PropTypes.bool,
2424
mergeParams: PropTypes.bool,
2525
strict: PropTypes.bool,
26-
children: PropTypes.oneOfType(
27-
PropTypes.arrayOf(PropTypes.node),
28-
PropTypes.node
29-
).isRequired,
26+
children: PropTypes.node,
3027
};

0 commit comments

Comments
 (0)