1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-22 17:33:14 +01:00

refactor routes

This commit is contained in:
Tim Daubenschütz 2015-06-01 09:05:30 +02:00
parent 897b771068
commit ed66c4150e
5 changed files with 6 additions and 7 deletions

View File

@ -7,7 +7,6 @@ let AccordionListItem = React.createClass({
},
render() {
console.log(this.props.content);
return (
<div className={this.props.className}>
<div className="wrapper">

View File

@ -26,7 +26,7 @@ let TableItemSelectable = React.createClass({
return (
<TableItem
classNames={tableItemClasses + ' ' + this.props.className}
className={tableItemClasses + ' ' + this.props.className}
columnList={this.props.columnList}
columnContent={this.props.columnContent}
onClick={this.selectItem}>

View File

@ -11,13 +11,13 @@ let TableItem = React.createClass({
columnList: React.PropTypes.arrayOf(React.PropTypes.instanceOf(TableColumnContentModel)),
columnContent: React.PropTypes.object,
onClick: React.PropTypes.func, // See: https://facebook.github.io/react/tips/expose-component-functions.html
classNames: React.PropTypes.string
className: React.PropTypes.string
},
render() {
return (
<div
className={this.props.classNames + ' col-xs-12 col-sm-12 col-md-12 col-lg-12 ascribe-table-item'}
className={this.props.className + ' col-xs-12 col-sm-12 col-md-12 col-lg-12 ascribe-table-item'}
onClick={this.props.onClick}>
<div className="row">
<TableItemWrapper

View File

@ -26,7 +26,7 @@ let TableItemSelectable = React.createClass({
return (
<TableItem
classNames={tableItemClasses + ' ' + this.props.className}
className={tableItemClasses + ' ' + this.props.className}
columnList={this.props.columnList}
columnContent={this.props.columnContent}
onClick={this.selectItem}>

View File

@ -9,8 +9,8 @@ let Route = Router.Route;
let routes = (
<Route name="app" path="/" handler={AscribeApp}>
<Route name="pieces" path="/pieces" handler={PieceList}>
<Route name="app" handler={AscribeApp}>
<Route name="pieces" path="/" handler={PieceList}>
</Route>
<Route name="edition" path="/editions/:editionId" handler={EditionContainer}>