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": { "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…
Cancel
Save