+ {label || fieldKey}
+ {compact && description && (
+
+
+
+ )}
+
+ }
+ css={inline && formItemInlineCss}
+ >
+ {hookedControl}
+ {!compact && description && (
+ ({
+ color: theme.colors.grayscale.base,
+ [inline ? 'marginLeft' : 'marginTop']: theme.gridUnit,
+ })}
+ >
+ {description}
+
+ )}
+
+ );
+}
diff --git a/superset-frontend/src/components/Form/FormItem.tsx b/superset-frontend/src/components/Form/FormItem.tsx
index 380bb13a4..ab301a883 100644
--- a/superset-frontend/src/components/Form/FormItem.tsx
+++ b/superset-frontend/src/components/Form/FormItem.tsx
@@ -16,8 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-import React from 'react';
-import Form, { FormItemProps } from 'antd/lib/form';
+import Form from 'antd/lib/form';
import { styled } from '@superset-ui/core';
const StyledItem = styled(Form.Item)`
@@ -45,6 +44,4 @@ const StyledItem = styled(Form.Item)`
`}
`;
-export default function FormItem(props: FormItemProps) {
- return