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