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:
parent
9f5bb3c1a6
commit
f70517457c
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user