🚧 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)};
|
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 = {
|
||||||
|
|
Loading…
Reference in a new issue