import { Form, Input, InputNumber } from "antd"; import React from "react"; import useFormField from "../../../Hooks/useFormField"; import { MdOutlineEdit } from "react-icons/md"; import { Field } from "formik"; import { ValidationFieldPropsInput } from "../utils/types"; const NumberField = ({ name, label, placeholder, isDisabled, onChange, type, no_label, label_icon, ...props }: ValidationFieldPropsInput) => { const { errorMsg, isError, t, formik } = useFormField(name, props); const handleChange = ( e: React.ChangeEvent, ) => { console.log("Change:", e); formik.setFieldValue(name, e); }; return (
{no_label ? ( ) : label_icon ? (
) : ( )}
); }; export default React.memo(NumberField);