mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 19:56:47 +03:00
Delinting
This commit is contained in:
parent
8b049b2182
commit
1f2f3474ed
3 changed files with 3 additions and 5 deletions
|
@ -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());
|
||||
|
|
|
@ -167,7 +167,6 @@ export default class AppTile extends React.Component {
|
|||
|
||||
// Widget action listeners
|
||||
this.dispatcherRef = dis.register(this._onWidgetAction);
|
||||
|
||||
}
|
||||
|
||||
componentDidUpdate() {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue