Sha256: 2ef5c6fd032aa0f87b9b19d0b71e5ffdbfeeb96183b3b2428eeb8a7f576337fa

Contents?: true

Size: 490 Bytes

Versions: 14

Compression:

Stored size: 490 Bytes

Contents

import React from "react";
import PropTypes from "prop-types";

export default class RichTextToolbarButton extends React.Component {
  render() {
    return (
      <a title={this.props.name}
         className={"button " + this.props.className}
         onClick={this.props.onClick}>
        <i className={"fa fa-" + this.props.className} />
      </a>
    );
  }
}

RichTextToolbarButton.propTypes = {
  className: PropTypes.string,
  name: PropTypes.string,
  onClick: PropTypes.func
};

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
pages_core-3.12.0 app/javascript/components/RichTextToolbarButton.jsx
pages_core-3.11.3 app/javascript/components/RichTextToolbarButton.jsx
pages_core-3.11.2 app/javascript/components/RichTextToolbarButton.jsx
pages_core-3.11.1 app/javascript/components/RichTextToolbarButton.jsx
pages_core-3.11.0 app/javascript/components/RichTextToolbarButton.jsx
pages_core-3.10.2 app/javascript/components/RichTextToolbarButton.jsx
pages_core-3.10.1 app/javascript/components/RichTextToolbarButton.jsx
pages_core-3.9.2 app/javascript/components/RichTextToolbarButton.jsx
pages_core-3.9.1 app/javascript/components/RichTextToolbarButton.jsx
pages_core-3.9.0 app/javascript/components/RichTextToolbarButton.jsx
pages_core-3.8.3 app/javascript/components/RichTextToolbarButton.jsx
pages_core-3.8.2 app/javascript/components/RichTextToolbarButton.jsx
pages_core-3.8.1 app/javascript/components/RichTextToolbarButton.jsx
pages_core-3.8.0 app/javascript/components/RichTextToolbarButton.jsx