Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit a419056

Browse files
committed
Delinting
1 parent 06919e2 commit a419056

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

src/components/structures/ContextualMenu.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,12 +173,13 @@ export function createMenu(ElementClass, props) {
173173
}
174174
};
175175

176+
// We only reference closeMenu once per call to createMenu
176177
const menu = <ContextualMenu
177178
{...props}
178179
hasBackground={true}
179180
elementClass={ElementClass}
180-
closeMenu={closeMenu}
181-
windowResize={closeMenu}
181+
closeMenu={closeMenu} // eslint-disable-line react/jsx-no-bind
182+
windowResize={closeMenu} // eslint-disable-line react/jsx-no-bind
182183
/>;
183184

184185
ReactDOM.render(menu, getOrCreateContainer());

src/components/views/elements/AppTile.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ export default class AppTile extends React.Component {
167167

168168
// Widget action listeners
169169
this.dispatcherRef = dis.register(this._onWidgetAction);
170-
171170
}
172171

173172
componentDidUpdate() {

src/components/views/elements/PersistedElement.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,8 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17-
const classNames = require('classnames');
1817
const React = require('react');
1918
const ReactDOM = require('react-dom');
20-
import PropTypes from 'prop-types';
2119

2220
// Shamelessly ripped off Modal.js. There's probably a better way
2321
// of doing reusable widgets like dialog boxes & menus where we go and

0 commit comments

Comments
 (0)