|
1 | | -import {Col, Collapse, Divider, Form, Row, Typography} from "antd"; |
| 1 | +import { Col, Collapse, Divider, Form, Row, Typography } from "antd"; |
2 | 2 | import type React from "react"; |
3 | 3 | import { useCallback, useEffect, useState } from "react"; |
4 | 4 | import { useTranslation } from "react-i18next"; |
@@ -103,9 +103,10 @@ export const FormContainer: React.FC<IFormContainer> = ({ |
103 | 103 | key={field.name} |
104 | 104 | name={field.name} |
105 | 105 | label={ |
106 | | - getConf(field).form_widget_props?.label |
107 | | - ? getConf(field)?.form_widget_props?.label |
108 | | - : getTitleFromFieldName(field.name)} |
| 106 | + getConf(field).form_widget_props?.label |
| 107 | + ? getConf(field)?.form_widget_props?.label |
| 108 | + : getTitleFromFieldName(field.name) |
| 109 | + } |
109 | 110 | rules={ |
110 | 111 | [ |
111 | 112 | ...(getConf(field).required |
@@ -170,11 +171,14 @@ export const FormContainer: React.FC<IFormContainer> = ({ |
170 | 171 | } |
171 | 172 | > |
172 | 173 | {getWidget(getConf(field))} |
173 | | - {getConf(field).form_widget_props?.help && |
174 | | - <Typography.Text type={"secondary"} style={{marginTop: ".35rem", display: "flex"}}> |
| 174 | + {getConf(field).form_widget_props?.help && ( |
| 175 | + <Typography.Text |
| 176 | + type={"secondary"} |
| 177 | + style={{ marginTop: ".35rem", display: "flex" }} |
| 178 | + > |
175 | 179 | {getConf(field).form_widget_props?.help} |
176 | 180 | </Typography.Text> |
177 | | - } |
| 181 | + )} |
178 | 182 | </Form.Item> |
179 | 183 | )); |
180 | 184 | }, |
|
0 commit comments