1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-15 21:08:57 +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 = {
children: PropTypes.oneOfType([
PropTypes.string,
PropTypes.object,
PropTypes.array,
]).isRequired,
href: PropTypes.string.isRequired,