balibabu
commited on
Commit
·
d696cd8
1
Parent(s):
1ea3843
feat: Remove Typography from SwitchForm #1739 (#2059)
Browse files### What problem does this PR solve?
feat: Remove Typography from SwitchForm #1739
### Type of change
- [x] New Feature (non-breaking change which adds functionality)
web/src/pages/flow/switch-form/index.tsx
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
import { CloseOutlined } from '@ant-design/icons';
|
2 |
-
import { Button, Card, Divider, Form, Input, Select
|
3 |
import { useMemo } from 'react';
|
4 |
import { useTranslation } from 'react-i18next';
|
5 |
import {
|
@@ -181,14 +181,6 @@ const SwitchForm = ({ onValuesChange, node, form }: IOperatorForm) => {
|
|
181 |
options={buildCategorizeToOptions(getSelectedConditionTos())}
|
182 |
/>
|
183 |
</Form.Item>
|
184 |
-
|
185 |
-
<Form.Item noStyle shouldUpdate>
|
186 |
-
{() => (
|
187 |
-
<Typography>
|
188 |
-
<pre>{JSON.stringify(form?.getFieldsValue(), null, 2)}</pre>
|
189 |
-
</Typography>
|
190 |
-
)}
|
191 |
-
</Form.Item>
|
192 |
</Form>
|
193 |
);
|
194 |
};
|
|
|
1 |
import { CloseOutlined } from '@ant-design/icons';
|
2 |
+
import { Button, Card, Divider, Form, Input, Select } from 'antd';
|
3 |
import { useMemo } from 'react';
|
4 |
import { useTranslation } from 'react-i18next';
|
5 |
import {
|
|
|
181 |
options={buildCategorizeToOptions(getSelectedConditionTos())}
|
182 |
/>
|
183 |
</Form.Item>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
184 |
</Form>
|
185 |
);
|
186 |
};
|