blob: 26e69bf5396e1cf2f053962575af7a14bd8195c3 (
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
26
|
import React, { Component } from 'react'
import PropTypes from 'prop-types'
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
}
|