提交 2e8ab99c 编写于 作者: M Muharrem Tigdemir

Reformatting

上级 c3dfb9bd
...@@ -2,7 +2,6 @@ import React, { Component } from 'react'; ...@@ -2,7 +2,6 @@ import React, { Component } from 'react';
import MetisMenu from 'react-metismenu'; import MetisMenu from 'react-metismenu';
class Navigation extends Component { class Navigation extends Component {
constructor() { constructor() {
super(); super();
this.state = { this.state = {
...@@ -10,12 +9,12 @@ class Navigation extends Component { ...@@ -10,12 +9,12 @@ class Navigation extends Component {
{ {
icon: 'eye', icon: 'eye',
label: 'Database Stats', label: 'Database Stats',
to: 'menu-1', to: 'menu-1'
}, },
{ {
icon: 'wrench', icon: 'wrench',
label: 'Management', label: 'Management',
to: 'menu-2', to: 'menu-2'
}, },
{ {
icon: 'bolt', icon: 'bolt',
...@@ -24,9 +23,9 @@ class Navigation extends Component { ...@@ -24,9 +23,9 @@ class Navigation extends Component {
{ {
icon: 'bolt', icon: 'bolt',
label: 'Sub Menu', label: 'Sub Menu',
to: 'sub-menu', to: 'sub-menu'
}, }
], ]
}, },
{ {
icon: 'bolt', icon: 'bolt',
...@@ -35,37 +34,34 @@ class Navigation extends Component { ...@@ -35,37 +34,34 @@ class Navigation extends Component {
{ {
icon: 'bolt', icon: 'bolt',
label: 'Sub Menu', label: 'Sub Menu',
to: 'sub-menu', to: 'sub-menu'
}, }
], ]
}, },
{ {
icon: 'bolt', icon: 'bolt',
label: 'System', label: 'System'
}, }
] ]
} };
} }
/*activeRoute(routeName) { /*activeRoute(routeName) {
return this.props.location.pathname.indexOf(routeName) > -1 ? 'active' : ''; return this.props.location.pathname.indexOf(routeName) > -1 ? 'active' : '';
} }
secondLevelActive(routeName) { secondLevelActive(routeName) {
return this.props.location.pathname.indexOf(routeName) > -1 ? 'nav nav-second-level collapse in' : 'nav nav-second-level collapse'; return this.props.location.pathname.indexOf(routeName) > -1 ? 'nav nav-second-level collapse in' : 'nav nav-second-level collapse';
}*/ }*/
render() { render() {
return ( return (
<div className='navbar-default navbar-static-side' role='navigation'> <div className='navbar-default navbar-static-side' role='navigation'>
<ul className='nav metismenu' id='side-menu' ref='menu'> <ul className='nav metismenu' id='side-menu' ref='menu'>
<MetisMenu <MetisMenu classNameContainer='nav metismenu' content={this.state.menu} ref='menu' />
classNameContainer="nav metismenu"
content={this.state.menu} ref="menu" />
</ul> </ul>
</div> </div>
); );
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册