🚧 update children prop type
This commit is contained in:
parent
18e945c7d5
commit
95295422a3
1 changed files with 1 additions and 2 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue