import { Field } from "react-final-form"; import React from "react"; import Error from "../Error"; import { classNames } from "../../../styles/utils"; interface Props { name: string; label?: string; placeholder?: string; className?: string; required?: boolean; } const NumberField: React.FC = ({ name, label, placeholder, required, className, }) => (
v & parseInt(v, 10)}> {({ input, meta }) => (
)}
); export default NumberField;