application/components/common/rich-editor2/util/icon-button.js
- import React, { Component } from 'react';
-
- /**
- * Fake MaterialUI icon button here because
- * we're using the FontAwesome icons and they're not
- * the same size. So we use a fake component here so:
- *
- * 1. The icons remain the same size, and
- * 2. IconMenu doesn't freak out when we hit escape.
- */
- class IconButton extends Component {
-
- setKeyboardFocus() {
- return null;
- }
-
- render() {
- return (
- <i {...this.props}>{this.props.children}</i>
- );
- }
- }
-
- export default IconButton;