1
0
mirror of https://github.com/trezor/trezor-wallet synced 2025-01-11 16:41:06 +00:00

Fix propTypes of children property

- child can be a single string object, array of arbitrary objects or a single object (e.g., single Button child)
This commit is contained in:
Vasek Mlejnsky 2018-08-24 06:48:11 +02:00
parent 9f5bb3c1a6
commit f70517457c

View File

@ -62,6 +62,7 @@ const Link = ({
Link.propTypes = { Link.propTypes = {
children: PropTypes.oneOfType([ children: PropTypes.oneOfType([
PropTypes.string, PropTypes.string,
PropTypes.object,
PropTypes.array, PropTypes.array,
]).isRequired, ]).isRequired,
href: PropTypes.string.isRequired, href: PropTypes.string.isRequired,