mirror of
https://github.com/vale981/Vulcan
synced 2025-03-05 09:31:43 -05:00
Go back to using FormNestedFoot in Nested Array Fields
This commit is contained in:
parent
553a0627d4
commit
a0280d86e9
2 changed files with 7 additions and 10 deletions
|
@ -97,15 +97,12 @@ class FormNestedArray extends PureComponent {
|
|||
)
|
||||
),
|
||||
(!maxCount || arrayLength < maxCount) && (
|
||||
<Components.Button
|
||||
<Components.FormNestedFoot
|
||||
key="add-button"
|
||||
size="small"
|
||||
variant="success"
|
||||
onClick={this.addItem}
|
||||
className="form-nested-button"
|
||||
>
|
||||
<Components.IconAdd height={12} width={12} />
|
||||
</Components.Button>
|
||||
addItem={this.addItem}
|
||||
label={this.props.label}
|
||||
className="form-nested-foot"
|
||||
/>
|
||||
),
|
||||
hasErrors ? (
|
||||
<FormComponents.FieldErrors
|
||||
|
|
|
@ -2,8 +2,8 @@ import React from 'react';
|
|||
import PropTypes from 'prop-types';
|
||||
import { Components, registerComponent } from 'meteor/vulcan:core';
|
||||
|
||||
const FormNestedFoot = ({ label, addItem }) => (
|
||||
<Components.Button size="small" variant="success" iconButton onClick={addItem} className="form-nested-button">
|
||||
const FormNestedFoot = ({ addItem }) => (
|
||||
<Components.Button size="small" variant="success" onClick={addItem} className="form-nested-button">
|
||||
<Components.IconAdd height={12} width={12} />
|
||||
</Components.Button>
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue