mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-30 20:28:09 +00:00
Fixed props warning
This commit is contained in:
parent
b2fec821ca
commit
672429c62c
@ -51,12 +51,7 @@ class Link extends PureComponent {
|
|||||||
let LinkComponent;
|
let LinkComponent;
|
||||||
if (shouldRenderRouterLink) {
|
if (shouldRenderRouterLink) {
|
||||||
LinkComponent = (
|
LinkComponent = (
|
||||||
<StyledNavLink
|
<StyledNavLink {...this.props}>{this.props.children}</StyledNavLink>);
|
||||||
isGreen={this.props.isGreen}
|
|
||||||
isGray={this.props.isGray}
|
|
||||||
to={this.props.to}
|
|
||||||
>{this.props.children}
|
|
||||||
</StyledNavLink>);
|
|
||||||
} else {
|
} else {
|
||||||
LinkComponent = (
|
LinkComponent = (
|
||||||
<A
|
<A
|
||||||
@ -92,9 +87,4 @@ Link.propTypes = {
|
|||||||
isGray: PropTypes.bool,
|
isGray: PropTypes.bool,
|
||||||
};
|
};
|
||||||
|
|
||||||
Link.defaultProps = {
|
|
||||||
isGreen: false,
|
|
||||||
isGray: false,
|
|
||||||
};
|
|
||||||
|
|
||||||
export default Link;
|
export default Link;
|
||||||
|
Loading…
Reference in New Issue
Block a user