|
|
|
@ -14,7 +14,7 @@ class WordsBtn extends Component {
|
|
|
|
|
{
|
|
|
|
|
to==undefined&&targets==undefined ?
|
|
|
|
|
<a href={href || "javascript:void(0)"} onClick={this.props.onClick} className={"btn "+`${map[this.props.style]} ${this.props.className}`}>{this.props.children}</a>:
|
|
|
|
|
target!=undefined? <a href={href || "javascript:void(0)"} target="_blank" onClick={this.props.onClick} className={"btn "+`${map[this.props.style]} ${this.props.className}`}>{this.props.children}</a>
|
|
|
|
|
targets!=undefined? <a href={to} target="_blank" className={"btn "+`${map[this.props.style]} ${this.props.className}`}>{this.props.children}</a>
|
|
|
|
|
:
|
|
|
|
|
<Link to={to} className={"btn "+`${map[this.props.style]} ${this.props.className}`}>{this.props.children}</Link>
|
|
|
|
|
}
|
|
|
|
|