diff --git a/src/settings.jsx b/src/settings.jsx new file mode 100644 index 00000000..c69f1614 --- /dev/null +++ b/src/settings.jsx @@ -0,0 +1,61 @@ +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