render()

in src/components/core/Button/Button.js [145:162]


  render() {
    const {
      href,
    } = this.props;

    if (href) {
      return (
        <StyledLink {...this.props} type={undefined} />
      );
    }
    return (
      <StyledButton {...this.props} data-selected={this.props.selected} disabled={this.props.loading || this.props.disabled}>
        {this.props.loading && <Loader color={this.props.loaderColor}/>}
        {this.props.icon && !this.props.loading && <Icon src={this.props.icon} type={this.props.iconSize}/>}
        {this.props.children}
      </StyledButton>
    );
  }