Delinting
parent
8b049b2182
commit
1f2f3474ed
|
@ -173,12 +173,13 @@ export function createMenu(ElementClass, props) {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// We only reference closeMenu once per call to createMenu
|
||||||
const menu = <ContextualMenu
|
const menu = <ContextualMenu
|
||||||
{...props}
|
{...props}
|
||||||
hasBackground={true}
|
hasBackground={true}
|
||||||
elementClass={ElementClass}
|
elementClass={ElementClass}
|
||||||
closeMenu={closeMenu}
|
closeMenu={closeMenu} // eslint-disable-line react/jsx-no-bind
|
||||||
windowResize={closeMenu}
|
windowResize={closeMenu} // eslint-disable-line react/jsx-no-bind
|
||||||
/>;
|
/>;
|
||||||
|
|
||||||
ReactDOM.render(menu, getOrCreateContainer());
|
ReactDOM.render(menu, getOrCreateContainer());
|
||||||
|
|
|
@ -167,7 +167,6 @@ export default class AppTile extends React.Component {
|
||||||
|
|
||||||
// Widget action listeners
|
// Widget action listeners
|
||||||
this.dispatcherRef = dis.register(this._onWidgetAction);
|
this.dispatcherRef = dis.register(this._onWidgetAction);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
componentDidUpdate() {
|
componentDidUpdate() {
|
||||||
|
|
|
@ -14,10 +14,8 @@ See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const classNames = require('classnames');
|
|
||||||
const React = require('react');
|
const React = require('react');
|
||||||
const ReactDOM = require('react-dom');
|
const ReactDOM = require('react-dom');
|
||||||
import PropTypes from 'prop-types';
|
|
||||||
|
|
||||||
// Shamelessly ripped off Modal.js. There's probably a better way
|
// Shamelessly ripped off Modal.js. There's probably a better way
|
||||||
// of doing reusable widgets like dialog boxes & menus where we go and
|
// of doing reusable widgets like dialog boxes & menus where we go and
|
||||||
|
|
Loading…
Reference in New Issue