Skip to content

Commit

Permalink
update huge apps demo
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanflorence committed Nov 2, 2015
1 parent b5d0deb commit a85c3f7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/huge-apps/routes/Course/components/Course.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,20 @@ styles.sidebar = {

class Course extends React.Component {
render() {
let { children, params } = this.props
let { sidebar, main, params } = this.props
let course = COURSES[params.courseId]

return (
<div>
<h2>{course.name}</h2>
<Nav course={course} />
{children && children.sidebar && children.main ? (
{sidebar && main ? (
<div>
<div className="Sidebar" style={styles.sidebar}>
{children.sidebar}
{sidebar}
</div>
<div className="Main" style={{ padding: 20 }}>
{children.main}
{main}
</div>
</div>
) : (
Expand Down

0 comments on commit a85c3f7

Please sign in to comment.