import React from 'react' import { Drawer, Container, Block, Fixed } from 'rebass' import {Map} from './map.jsx' import {Toolbar} from './toolbar.jsx' import { LayerEditor } from './layers.jsx' import theme from './theme.js' import layout from './layout.scss' export class WorkspaceDrawer extends React.Component { render() { let editor = null if(this.props.mapStyle) { editor = } return
{editor}
} } export default class App extends React.Component { static childContextTypes = { rebass: React.PropTypes.object, reactIconBase: React.PropTypes.object } constructor(props) { super(props) this.updateStyle = this.updateStyle.bind(this); this.state = { mapStyle: null } } updateStyle(newStyle) { this.setState({ mapStyle: newStyle }) } getChildContext () { return { rebass: theme, reactIconBase: { size: 20, } } } render() { console.log(this.state.mapStyle) return
} }