Fixing some propTypes
This commit is contained in:
parent
b009d078b6
commit
5afca2241a
@ -23,7 +23,10 @@ Message.propTypes = {
|
||||
PropTypes.func
|
||||
]),
|
||||
heading: PropTypes.string.isRequired,
|
||||
children: PropTypes.element.isRequired
|
||||
children: PropTypes.oneOfType([
|
||||
PropTypes.arrayOf(PropTypes.node),
|
||||
PropTypes.node
|
||||
]).isRequired
|
||||
};
|
||||
|
||||
export default Message;
|
||||
|
@ -52,7 +52,10 @@ const PageTemplate = ({ title, children }) => (
|
||||
|
||||
PageTemplate.propTypes = {
|
||||
title: PropTypes.string,
|
||||
children: PropTypes.element
|
||||
children: PropTypes.oneOfType([
|
||||
PropTypes.arrayOf(PropTypes.node),
|
||||
PropTypes.node
|
||||
])
|
||||
};
|
||||
|
||||
const renderToString = content => '<!DOCTYPE html>' + ReactDOMServer.renderToString(content);
|
||||
|
Loading…
Reference in New Issue
Block a user