Blame view
imports/ui/layouts/app.js
461 Bytes
2b1ad7917
|
1 2 3 |
import React from 'react'; import { Grid } from 'react-bootstrap'; import AppNavigation from '../containers/app-navigation'; |
7df77f0fa
|
4 5 6 7 |
export const App = React.createClass({ contextTypes: { router() { return React.PropTypes.func.isRequired; |
f0c912bf1
|
8 |
}, |
7df77f0fa
|
9 |
}, |
2b1ad7917
|
10 |
render() { |
b2b910457
|
11 |
const { isActive } = this.context.router; |
2b1ad7917
|
12 |
return <div> |
b2b910457
|
13 |
<AppNavigation activeRoute={ isActive } /> |
2b1ad7917
|
14 15 16 17 |
<Grid> { this.props.children } </Grid> </div>; |
f0c912bf1
|
18 |
}, |
7df77f0fa
|
19 |
}); |