mirror of
https://github.com/ascribe/onion.git
synced 2024-11-15 01:25:17 +01:00
refactor routes
This commit is contained in:
parent
897b771068
commit
ed66c4150e
@ -7,7 +7,6 @@ let AccordionListItem = React.createClass({
|
|||||||
},
|
},
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
console.log(this.props.content);
|
|
||||||
return (
|
return (
|
||||||
<div className={this.props.className}>
|
<div className={this.props.className}>
|
||||||
<div className="wrapper">
|
<div className="wrapper">
|
||||||
|
@ -26,7 +26,7 @@ let TableItemSelectable = React.createClass({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<TableItem
|
<TableItem
|
||||||
classNames={tableItemClasses + ' ' + this.props.className}
|
className={tableItemClasses + ' ' + this.props.className}
|
||||||
columnList={this.props.columnList}
|
columnList={this.props.columnList}
|
||||||
columnContent={this.props.columnContent}
|
columnContent={this.props.columnContent}
|
||||||
onClick={this.selectItem}>
|
onClick={this.selectItem}>
|
||||||
|
@ -11,13 +11,13 @@ let TableItem = React.createClass({
|
|||||||
columnList: React.PropTypes.arrayOf(React.PropTypes.instanceOf(TableColumnContentModel)),
|
columnList: React.PropTypes.arrayOf(React.PropTypes.instanceOf(TableColumnContentModel)),
|
||||||
columnContent: React.PropTypes.object,
|
columnContent: React.PropTypes.object,
|
||||||
onClick: React.PropTypes.func, // See: https://facebook.github.io/react/tips/expose-component-functions.html
|
onClick: React.PropTypes.func, // See: https://facebook.github.io/react/tips/expose-component-functions.html
|
||||||
classNames: React.PropTypes.string
|
className: React.PropTypes.string
|
||||||
},
|
},
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<div
|
<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}>
|
onClick={this.props.onClick}>
|
||||||
<div className="row">
|
<div className="row">
|
||||||
<TableItemWrapper
|
<TableItemWrapper
|
||||||
|
@ -26,7 +26,7 @@ let TableItemSelectable = React.createClass({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<TableItem
|
<TableItem
|
||||||
classNames={tableItemClasses + ' ' + this.props.className}
|
className={tableItemClasses + ' ' + this.props.className}
|
||||||
columnList={this.props.columnList}
|
columnList={this.props.columnList}
|
||||||
columnContent={this.props.columnContent}
|
columnContent={this.props.columnContent}
|
||||||
onClick={this.selectItem}>
|
onClick={this.selectItem}>
|
||||||
|
@ -9,8 +9,8 @@ let Route = Router.Route;
|
|||||||
|
|
||||||
|
|
||||||
let routes = (
|
let routes = (
|
||||||
<Route name="app" path="/" handler={AscribeApp}>
|
<Route name="app" handler={AscribeApp}>
|
||||||
<Route name="pieces" path="/pieces" handler={PieceList}>
|
<Route name="pieces" path="/" handler={PieceList}>
|
||||||
|
|
||||||
</Route>
|
</Route>
|
||||||
<Route name="edition" path="/editions/:editionId" handler={EditionContainer}>
|
<Route name="edition" path="/editions/:editionId" handler={EditionContainer}>
|
||||||
|
Loading…
Reference in New Issue
Block a user