import LabelSelector from '@/components/label-selector'; import ModalFooter from '@/components/modal-footer'; import SealInput from '@/components/seal-form/seal-input'; import { useIntl } from '@umijs/max'; import { Form, Modal } from 'antd'; import React from 'react'; import SimpleBar from 'simplebar-react'; import 'simplebar-react/dist/simplebar.min.css'; type ViewModalProps = { open: boolean; onCancel: () => void; onOk: (values: FormData) => Promise; data: { name: string; labels: object; }; }; interface FormData { labels: object; name: string; } const UpdateLabels: React.FC = (props) => { const { open, onCancel, data, onOk } = props || {}; const intl = useIntl(); const [form] = Form.useForm(); const labels = Form.useWatch('labels', form); const handleLabelsChange = (labels: object) => { form.setFieldValue('labels', labels); }; const handleSumit = () => { form.submit(); }; return ( } >
name="name"> name="labels">
); }; export default React.memo(UpdateLabels);