Delinting

pull/21833/head
Luke Barnard 2018-05-11 17:28:12 +01:00
parent 8b049b2182
commit 1f2f3474ed
3 changed files with 3 additions and 5 deletions

View File

@ -173,12 +173,13 @@ export function createMenu(ElementClass, props) {
}
};
// We only reference closeMenu once per call to createMenu
const menu = <ContextualMenu
{...props}
hasBackground={true}
elementClass={ElementClass}
closeMenu={closeMenu}
windowResize={closeMenu}
closeMenu={closeMenu} // eslint-disable-line react/jsx-no-bind
windowResize={closeMenu} // eslint-disable-line react/jsx-no-bind
/>;
ReactDOM.render(menu, getOrCreateContainer());

View File

@ -167,7 +167,6 @@ export default class AppTile extends React.Component {
// Widget action listeners
this.dispatcherRef = dis.register(this._onWidgetAction);
}
componentDidUpdate() {

View File

@ -14,10 +14,8 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
const classNames = require('classnames');
const React = require('react');
const ReactDOM = require('react-dom');
import PropTypes from 'prop-types';
// Shamelessly ripped off Modal.js. There's probably a better way
// of doing reusable widgets like dialog boxes & menus where we go and