diff --git a/src/components/App.jsx b/src/components/App.jsx index b7139df9..6f479759 100644 --- a/src/components/App.jsx +++ b/src/components/App.jsx @@ -6,25 +6,20 @@ import Container from 'rebass/dist/Container' import Block from 'rebass/dist/Block' import Fixed from 'rebass/dist/Fixed' -import MapboxGlMap from './map/MapboxGlMap.jsx' -import OpenLayers3Map from './map/OpenLayers3Map.jsx' -import LayerList from './layers/LayerList.jsx' -import LayerEditor from './layers/LayerEditor.jsx' -import Toolbar from './Toolbar.jsx' +import MapboxGlMap from './map/MapboxGlMap' +import OpenLayers3Map from './map/OpenLayers3Map' +import LayerList from './layers/LayerList' +import LayerEditor from './layers/LayerEditor' +import Toolbar from './Toolbar' +import Layout from './Layout' import style from '../libs/style.js' -import { loadDefaultStyle, SettingsStore, StyleStore } from '../libs/stylestore.js' -import { ApiStyleStore } from '../libs/apistore.js' -import LayerWatcher from '../libs/layerwatcher.js' +import { loadDefaultStyle, SettingsStore, StyleStore } from '../libs/stylestore' +import { ApiStyleStore } from '../libs/apistore' +import LayerWatcher from '../libs/layerwatcher' -import theme from '../config/rebass.js' -import colors from '../config/colors.js' export default class App extends React.Component { - static childContextTypes = { - rebass: React.PropTypes.object, - reactIconBase: React.PropTypes.object - } constructor(props) { super(props) @@ -51,13 +46,6 @@ export default class App extends React.Component { loadDefaultStyle(mapStyle => this.onStyleUpload(mapStyle)) } - getChildContext() { - return { - rebass: theme, - reactIconBase: { size: 20 } - } - } - onStyleDownload() { const mapStyle = this.state.mapStyle const blob = new Blob([JSON.stringify(mapStyle, null, 4)], {type: "application/json;charset=utf-8"}); @@ -138,45 +126,33 @@ export default class App extends React.Component { const layers = this.state.mapStyle.layers || [] const selectedLayer = layers.length > 0 ? layers[this.state.selectedLayerIndex] : null - return