1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-12-23 23:48:07 +00:00

Change propTypes so multiple elements can be children of paragraph

This commit is contained in:
Vasek Mlejnsky 2018-08-24 06:20:33 +02:00
parent a5739c32e1
commit 86bf1b6446

View File

@ -24,9 +24,11 @@ const P = ({ children, className, isSmaller = false }) => (
P.propTypes = {
className: PropTypes.string,
children: PropTypes.string.isRequired,
isSmaller: PropTypes.bool,
children: PropTypes.oneOfType([
PropTypes.array,
PropTypes.string,
]).isRequired,
};
export default P;
export default P;