mirror of
https://github.com/trezor/trezor-wallet
synced 2024-12-25 00:18:07 +00:00
Change propTypes so multiple elements can be children of paragraph
This commit is contained in:
parent
a5739c32e1
commit
86bf1b6446
@ -24,9 +24,11 @@ const P = ({ children, className, isSmaller = false }) => (
|
|||||||
|
|
||||||
P.propTypes = {
|
P.propTypes = {
|
||||||
className: PropTypes.string,
|
className: PropTypes.string,
|
||||||
children: PropTypes.string.isRequired,
|
|
||||||
isSmaller: PropTypes.bool,
|
isSmaller: PropTypes.bool,
|
||||||
|
children: PropTypes.oneOfType([
|
||||||
|
PropTypes.array,
|
||||||
|
PropTypes.string,
|
||||||
|
]).isRequired,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
export default P;
|
export default P;
|
Loading…
Reference in New Issue
Block a user