import { Col, Row } from 'reactstrap'; import ValidationField from '../../../../Components/ValidationField/ValidationField'; import { useFormikContext } from 'formik'; import { Switch } from 'antd'; import { useTranslation } from 'react-i18next'; function Form() { const { values,setFieldValue } = useFormikContext(); const [t] = useTranslation() const onChange = (checked: boolean) => { console.log(`switch to ${checked}`); setFieldValue("is_active", checked ? 1 : 0) }; return (
) } export default Form