added link to settings to header component

This commit is contained in:
majormjr 2016-05-07 16:42:07 -04:00
parent 32d54b57c6
commit 4ca1dd7591

View File

@ -1,5 +1,5 @@
import React from 'react'; import React from 'react';
import {IndexLink, browserHistory} from 'react-router'; import {Link, IndexLink, browserHistory} from 'react-router';
class Header extends React.Component { class Header extends React.Component {
constructor(props) { constructor(props) {
@ -14,7 +14,6 @@ class Header extends React.Component {
dataType: "json", dataType: "json",
success: (resp) => { success: (resp) => {
console.log(resp) console.log(resp)
alert(resp.data)
} }
}); });
// Wait for 1 second for logout callback to complete // Wait for 1 second for logout callback to complete
@ -29,7 +28,10 @@ class Header extends React.Component {
loginMenu = loginMenu =
<ul className="nav navbar-nav"> <ul className="nav navbar-nav">
<li> <li>
<a href="javascript:void(0)" onClick={this.onLogout}><i className="fa fa-gears fa-fw"></i>Logout</a> <Link to="/settings"><i className="fa fa-gears fa-fw"></i>Settings</Link>
</li>
<li>
<a href="javascript:void(0)" onClick={this.onLogout}><i className="fa fa-lock fa-fw"></i>Logout</a>
</li> </li>
</ul> </ul>
} }