Wire up padding settings

main
Jake Dexheimer 7 years ago
parent 1df36b5603
commit 2ee9bb0da5

@ -20,7 +20,7 @@ class Settings extends React.Component {
} }
handleClickOutside() { handleClickOutside() {
this.setState({ isVisible: false }); this.setState({ isVisible: false })
} }
render() { render() {

@ -8,7 +8,9 @@ export default class extends React.Component {
} }
handleChange(e) { handleChange(e) {
this.setState({ value: e.target.value }) this.setState({ value: e.target.value }, () => {
this.props.onChange(`${this.state.value}px`)
})
} }
render() { render() {

@ -9,8 +9,9 @@ export default class extends React.Component {
} }
toggle() { toggle() {
this.setState({ isEnabled: !this.state.isEnabled }) this.setState({ isEnabled: !this.state.isEnabled }, () => {
this.props.onChange(this.state.isEnabled) this.props.onChange(this.state.isEnabled)
})
} }
render() { render() {

Loading…
Cancel
Save