Fixed link dom props

pull/287/head
Vladimir Volek 6 years ago committed by Szymon Lesisz
parent 53acce3611
commit 80e774468c

@ -43,7 +43,7 @@
"settings": {
"import/resolver": {
"babel-module": {}
},
},
"import/ignore": [
"\\.(scss|less|css)$"
]

@ -55,13 +55,10 @@ class Link extends PureComponent {
} else {
LinkComponent = (
<A
className={this.props.className}
href={this.props.href}
target={this.props.target || '_blank'}
rel="noreferrer noopener"
onClick={this.props.onClick}
isGreen={this.props.isGreen}
isGray={this.props.isGray}
{...this.props}
>{this.props.children}
</A>
);
@ -87,4 +84,4 @@ Link.propTypes = {
isGray: PropTypes.bool,
};
export default Link;
export default Link;
Loading…
Cancel
Save