1
0
Fork 0

Rename dashboard route to org

This commit is contained in:
Gregory Eremin 2015-03-10 15:04:59 +07:00
parent d87eb390c3
commit af8b9fc08a
1 changed files with 4 additions and 4 deletions

View File

@ -43,10 +43,10 @@ var Menu = React.createClass({
<section className="menu"> <section className="menu">
<ul> <ul>
<li key="empact" className="nav empact"> <li key="empact" className="nav empact">
<Link to="dashboard" params={{org: this.getParams().org}}>Empact</Link> <Link to="org" params={{org: this.getParams().org}}>Empact</Link>
</li> </li>
<li key="dash" className="nav dash"> <li key="dash" className="nav dash">
<Link to="dashboard" params={{org: this.getParams().org}}>Dashboard</Link> <Link to="org" params={{org: this.getParams().org}}>{this.getParams().org}</Link>
</li> </li>
<li key="teams-header" className="nav header">Teams:</li> <li key="teams-header" className="nav header">Teams:</li>
{this.state.teams.map(renderTeam)} {this.state.teams.map(renderTeam)}
@ -56,7 +56,7 @@ var Menu = React.createClass({
} }
}); });
var Dashboard = React.createClass({ var Org = React.createClass({
render: function(){ render: function(){
return ( return (
<Router.RouteHandler/> <Router.RouteHandler/>
@ -122,7 +122,7 @@ var NotFound = React.createClass({
var routes = [ var routes = [
<Router.Route name="root" path="/app/" handler={App}> <Router.Route name="root" path="/app/" handler={App}>
<Router.Route name="dashboard" path=":org" handler={Dashboard}> <Router.Route name="org" path=":org" handler={Org}>
<Router.DefaultRoute handler={OrgStats} /> <Router.DefaultRoute handler={OrgStats} />
<Router.Route name="team" path="teams/:team" handler={TeamStats} /> <Router.Route name="team" path="teams/:team" handler={TeamStats} />
<Router.Route name="user" path="users/:user" handler={UserStats} /> <Router.Route name="user" path="users/:user" handler={UserStats} />