Skip to content

Commit 823e4cc

Browse files
gabrieldutraarikfr
authored andcommitted
Migrate DynamicForm to React (getredash#3209)
* create DynamicForm React component * Render fields based on target in DynamicForm * Add missing title property to fields * Fix style properties in DynamicForm * Render File fields in DynamicForm * Use React for middle component instead of Angular * Functional save button * Update label style * Render functional actions * Handle file inputs * Update render methods to fix code climate issues * Fix ant input number showing duplicate arrows * Update DynamicForm style to be vertical * Separate imports from antd in DynamicForm * Add Feedback Icons to DynamicForm * Change Action props on DynamicForm - use type and pullRight instead of class prop - update data sources and destinations pages accordingly * Remove setDefaults method from DynamicForm fields * Update antd version * Remove unnecessary class selectors * Remove another unnecessary class selector
1 parent 0c45d69 commit 823e4cc

File tree

11 files changed

+383
-173
lines changed

11 files changed

+383
-173
lines changed

client/app/assets/less/ant.less

+11
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
@import '~antd/lib/style/core/iconfont.less';
22
@import '~antd/lib/style/core/motion.less';
33
@import '~antd/lib/input/style/index.less';
4+
@import '~antd/lib/input-number/style/index.less';
45
@import '~antd/lib/date-picker/style/index.less';
56
@import '~antd/lib/modal/style/index.less';
67
@import '~antd/lib/tooltip/style/index.less';
78
@import '~antd/lib/select/style/index.less';
9+
@import '~antd/lib/checkbox/style/index.less';
10+
@import '~antd/lib/upload/style/index.less';
11+
@import '~antd/lib/form/style/index.less';
812
@import '~antd/lib/button/style/index.less';
913
@import '~antd/lib/radio/style/index.less';
1014
@import '~antd/lib/time-picker/style/index.less';
@@ -46,3 +50,10 @@
4650
.ant-dropdown-in-bootstrap-modal {
4751
z-index: 1050;
4852
}
53+
54+
// Fix ant input number showing duplicate arrows
55+
.ant-input-number-input::-webkit-outer-spin-button,
56+
.ant-input-number-input::-webkit-inner-spin-button {
57+
-webkit-appearance: none;
58+
margin: 0;
59+
}

client/app/components/dynamic-form.html

-41
This file was deleted.

client/app/components/dynamic-form.js

-124
This file was deleted.

0 commit comments

Comments
 (0)