feat: Remove Typography from SwitchForm #1739 (#2059)

### What problem does this PR solve?

feat: Remove Typography from SwitchForm #1739

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu 2024-08-23 10:21:00 +08:00 committed by GitHub
parent c739b68b29
commit 884fd83dc7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,5 +1,5 @@
import { CloseOutlined } from '@ant-design/icons';
import { Button, Card, Divider, Form, Input, Select, Typography } from 'antd';
import { Button, Card, Divider, Form, Input, Select } from 'antd';
import { useMemo } from 'react';
import { useTranslation } from 'react-i18next';
import {
@ -181,14 +181,6 @@ const SwitchForm = ({ onValuesChange, node, form }: IOperatorForm) => {
options={buildCategorizeToOptions(getSelectedConditionTos())}
/>
</Form.Item>
<Form.Item noStyle shouldUpdate>
{() => (
<Typography>
<pre>{JSON.stringify(form?.getFieldsValue(), null, 2)}</pre>
</Typography>
)}
</Form.Item>
</Form>
);
};