1
0
mirror of https://github.com/trezor/trezor-wallet synced 2025-06-09 09:38:47 +00:00

Link component: target parameter

This commit is contained in:
Szymon Lesisz 2018-10-11 13:06:51 +02:00
parent e59c9ec714
commit eab3bde184

View File

@ -62,7 +62,7 @@ class Link extends PureComponent {
<A <A
className={this.props.className} className={this.props.className}
href={this.props.href} href={this.props.href}
target="_blank" target={this.props.target || '_blank'}
rel="noreferrer noopener" rel="noreferrer noopener"
onClick={this.props.onClick} onClick={this.props.onClick}
isGreen={this.props.isGreen} isGreen={this.props.isGreen}
@ -84,6 +84,7 @@ Link.propTypes = {
]).isRequired, ]).isRequired,
className: PropTypes.string, className: PropTypes.string,
href: PropTypes.string, href: PropTypes.string,
target: PropTypes.string,
to: PropTypes.string, to: PropTypes.string,
onClick: PropTypes.func, onClick: PropTypes.func,
isGreen: PropTypes.bool, isGreen: PropTypes.bool,