/** * WordPress dependencies */ const { __ } = wp.i18n; const { Component } = wp.element; const { Button, ButtonGroup } = wp.components; class SOMOverride extends Component { constructor() { super( ...arguments ); this.onChange = this.onChange.bind( this ); this.state = { som: '', }; } onChange( event ) { this.setState( { som: event.target.value } ); this.props.onChange( event.target.value ); } render() { const { som } = this.state; return (
{ __( 'System of Measure (override from settings)' ) }