import React from 'react' import { Input } from 'rebass' export default class BackgroundLayer extends React.Component { static propTypes = { layer: React.PropTypes.object.isRequired, onPaintChanged: React.PropTypes.func.isRequired } onPaintChanged(property, e) { let value = e.target.value if (property == "background-opacity" && !isNaN(parseFloat(value))) { value = parseFloat(value) } this.props.onPaintChanged(property, value) } render() { const paint = this.props.layer.get('paint') return