aboutsummaryrefslogtreecommitdiffstats
path: root/app/javascript/routes/components/App.js
blob: 0f5786407c4f016a402d3a0a8718a4e876d2d9fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import React, { Component, PropTypes } from 'react'
import AddStopPoint from '../containers/AddStopPoint'
import VisibleStopPoints from'../containers/VisibleStopPoints'
import clone  from '../../helpers/clone'
const I18n = clone(window , "I18n", true)

export default class App extends Component {

  getChildContext() {
    return { I18n }
  }

  render() {
    return (
      <div>
        <VisibleStopPoints />
        <AddStopPoint />
      </div>
    )  
  } 
}

App.childContextTypes = {
  I18n: PropTypes.object
}