diff options
| author | 0Napster | 2017-10-11 12:03:04 +0200 |
|---|---|---|
| committer | GitHub | 2017-10-11 12:03:04 +0200 |
| commit | bf6d0e38ac7dfd7f99d67169e665384edd047ec0 (patch) | |
| tree | e08a253483cc17a4ef5623e72e9df084f2217a5e /app/javascript/routes/components/App.js | |
| parent | 98861e13d56403e75aa000d62880dcbc34987a37 (diff) | |
| parent | 8993eced364551163879dc1735ad7d583fc664ac (diff) | |
| download | chouette-core-bf6d0e38ac7dfd7f99d67169e665384edd047ec0.tar.bz2 | |
Merge pull request #86 from af83/webpacker
Add webpacker gem and migrate the React apps
Diffstat (limited to 'app/javascript/routes/components/App.js')
| -rw-r--r-- | app/javascript/routes/components/App.js | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/app/javascript/routes/components/App.js b/app/javascript/routes/components/App.js new file mode 100644 index 000000000..0f5786407 --- /dev/null +++ b/app/javascript/routes/components/App.js @@ -0,0 +1,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 +} |
