1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-24 01:08:27 +00:00

Make Button's children non required

This commit is contained in:
Vasek Mlejnsky 2018-09-04 14:41:53 +02:00
parent a865abe319
commit 97eb972ca0
2 changed files with 2 additions and 3 deletions

View File

@ -158,7 +158,7 @@ const Button = ({
);
Button.propTypes = {
children: PropTypes.node.isRequired,
children: PropTypes.node,
className: PropTypes.string,
onClick: PropTypes.func,
onMouseEnter: PropTypes.func,

View File

@ -158,8 +158,7 @@ const AccountReceive = (props: Props) => {
type: addressUnverified ? ICONS.EYE_CROSSED : ICONS.EYE,
color: addressUnverified ? colors.ERROR_PRIMARY : colors.TEXT_PRIMARY,
}}
>""
</EyeButton>
/>
</Tooltip>
)}
<ValueWrapper