Skip to content
This repository has been archived by the owner on Oct 1, 2019. It is now read-only.

Commit

Permalink
Replace lodash.filter with Array.filter in tools/menu-1
Browse files Browse the repository at this point in the history
  • Loading branch information
voidxnull committed Oct 9, 2016
1 parent fb9deb2 commit 6b62279
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/tools/menu-1.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
*/
import React, { PropTypes } from 'react';
import { Link } from 'react-router';
import { filter } from 'lodash';

import ClickOutsideComponentDecorator from '../../decorators/ClickOutsideComponentDecorator';
import { toolsMenu } from '../../utils/menu';
Expand Down Expand Up @@ -48,7 +47,7 @@ class Menu1 extends React.Component {

render() {
const root = toolsMenu.getCurrentRoot(this.props.currentPath);
const items = filter(toolsMenu.items, item => item.path !== root.path);
const items = toolsMenu.items.filter(item => item.path !== root.path);

let arrowIcon = 'keyboard_arrow_down';
if (this.state.opened) {
Expand Down

0 comments on commit 6b62279

Please sign in to comment.