🚧 update children prop type

This commit is contained in:
ghalestrilo 2020-07-15 17:32:38 -03:00
parent 18e945c7d5
commit 95295422a3

View file

@ -20,7 +20,6 @@ const FooterContent = styled.div`
padding-left: ${remSize(32)}; padding-left: ${remSize(32)};
`; `;
const Footer = ({ before, children }) => ( const Footer = ({ before, children }) => (
<FooterWrapper> <FooterWrapper>
{before} {before}
@ -32,7 +31,7 @@ const Footer = ({ before, children }) => (
Footer.propTypes = { Footer.propTypes = {
before: PropTypes.element, before: PropTypes.element,
children: PropTypes.element children: PropTypes.oneOfType([PropTypes.element, PropTypes.arrayOf(PropTypes.element)]),
}; };
Footer.defaultProps = { Footer.defaultProps = {