🚧 update children prop type

This commit is contained in:
ghalestrilo 2020-07-15 17:32:38 -03:00
parent 18e945c7d5
commit 95295422a3
1 changed files with 1 additions and 2 deletions

View File

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