|
|
@@ -3,6 +3,8 @@ import PropTypes from 'prop-types';
|
|
|
|
|
|
import Field from 'components/Field';
|
|
|
|
|
|
+import './style.scss';
|
|
|
+
|
|
|
function getEmptyValue(type) {
|
|
|
if (type === 'text' || type === 'textarea') {
|
|
|
return '';
|
|
|
@@ -66,7 +68,9 @@ export default class AddCrudItem extends Component {
|
|
|
<div className="fields">
|
|
|
{fields}
|
|
|
</div>
|
|
|
- <button className="button-add" onClick={this.onCreate}>{'Add'}</button>
|
|
|
+ <div className="meta">
|
|
|
+ <button className="button-add" onClick={this.onCreate}>{'Add'}</button>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
);
|
|
|
}
|