mirror of
https://github.com/trezor/trezor-wallet
synced 2025-06-15 20:48:45 +00:00
Fixed link dom props
This commit is contained in:
parent
90c266349d
commit
b151c9715b
@ -43,7 +43,7 @@
|
|||||||
"settings": {
|
"settings": {
|
||||||
"import/resolver": {
|
"import/resolver": {
|
||||||
"babel-module": {}
|
"babel-module": {}
|
||||||
},
|
},
|
||||||
"import/ignore": [
|
"import/ignore": [
|
||||||
"\\.(scss|less|css)$"
|
"\\.(scss|less|css)$"
|
||||||
]
|
]
|
||||||
|
@ -55,13 +55,10 @@ class Link extends PureComponent {
|
|||||||
} else {
|
} else {
|
||||||
LinkComponent = (
|
LinkComponent = (
|
||||||
<A
|
<A
|
||||||
className={this.props.className}
|
|
||||||
href={this.props.href}
|
href={this.props.href}
|
||||||
target={this.props.target || '_blank'}
|
target={this.props.target || '_blank'}
|
||||||
rel="noreferrer noopener"
|
rel="noreferrer noopener"
|
||||||
onClick={this.props.onClick}
|
{...this.props}
|
||||||
isGreen={this.props.isGreen}
|
|
||||||
isGray={this.props.isGray}
|
|
||||||
>{this.props.children}
|
>{this.props.children}
|
||||||
</A>
|
</A>
|
||||||
);
|
);
|
||||||
@ -87,4 +84,4 @@ Link.propTypes = {
|
|||||||
isGray: PropTypes.bool,
|
isGray: PropTypes.bool,
|
||||||
};
|
};
|
||||||
|
|
||||||
export default Link;
|
export default Link;
|
Loading…
Reference in New Issue
Block a user