import { Form, Input } from "antd"; import React from "react"; import useFormField from "../../../../../Hooks/useFormField"; import { MdOutlineEdit } from "react-icons/md"; import { Field } from "formik"; const HintField = ({ name, label, label2, placeholder, isDisabled, onChange, props, parent_index, id, className, }: any) => { const newName = `Questions[${parent_index}].QuestionOptions[${name}].hint`; const { formik, isError, errorMsg, t } = useFormField(newName, props); const TextFilehandleChange = ( e: React.ChangeEvent, ) => { // console.log('Change:', e.target.value); formik.setFieldValue(newName, e.target.value); }; return (
); }; export default React.memo(HintField);