import React from 'react' ; import { updateFilterRowValue } from '../../actionCreators' ; import defaultOptions from '../../defaultOptions' ; import { IFilterRowEditorProps } from '../../props' ; const FilterRowNumber = ( { column , dispatch , } ) => { const value = column . filterRowValue ; return ( < input className = { defaultOptions . css . numberInput } type = 'number' value = { value === null || value === undefined ? '' : value } onChange = { ( event ) => { const filterRowValue = event . currentTarget . value !== '' ? Number ( event . currentTarget . value ) : null ; dispatch ( updateFilterRowValue ( column . key , filterRowValue ) ) ; } } />); } ; export default FilterRowNumber ;