import React from 'react' import theme from './theme.js' import { Container, Input, Toolbar, NavItem, Space } from 'rebass' /** Edit global settings within a style such as the name */ export class SettingsEditor extends React.Component { static propTypes = { styleManager: React.PropTypes.object.isRequired } constructor(props) { super(props) this.state = { settings: this.props.styleManager.settings() } } onChange(property, e) { let settings = this.state.settings settings[property] = e.target.value this.props.styleManager[property] = settings[property] this.setState(settings) } render() { return
Settings
} }