Blame view

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