fix: allow just numbers

This commit is contained in:
José Oliveira 2021-03-16 14:03:58 +00:00 committed by Josh Harvey
parent fd582990ef
commit bee2dc42e6

View file

@ -449,7 +449,7 @@ const Requirement = () => {
{isSuspend && ( {isSuspend && (
<Field <Field
className={classes.thresholdField} className={classes.thresholdField}
component={TextInput} component={NumberInput}
label="Days" label="Days"
size="lg" size="lg"
name="requirement.suspensionDays" name="requirement.suspensionDays"
@ -548,7 +548,7 @@ const DisplayThreshold = ({ config, currency, isEdit }) => {
bold bold
className={classnames(inputClasses)} className={classnames(inputClasses)}
name="threshold.threshold" name="threshold.threshold"
component={TextInput} component={NumberInput}
textAlign="right" textAlign="right"
/> />
) : ( ) : (
@ -559,7 +559,7 @@ const DisplayThreshold = ({ config, currency, isEdit }) => {
bold bold
className={classnames(inputClasses)} className={classnames(inputClasses)}
name="threshold.thresholdDays" name="threshold.thresholdDays"
component={TextInput} component={NumberInput}
textAlign="right" textAlign="right"
/> />
) : ( ) : (