2018-09-19 13:16:48 -04:00
|
|
|
import React from 'react';
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
import { Components, registerComponent } from 'meteor/vulcan:core';
|
|
|
|
|
2019-01-02 18:35:36 +01:00
|
|
|
const FormNestedFoot = ({ addItem }) => (
|
|
|
|
<Components.Button size="small" variant="success" onClick={addItem} className="form-nested-button">
|
2018-09-19 13:16:48 -04:00
|
|
|
<Components.IconAdd height={12} width={12} />
|
|
|
|
</Components.Button>
|
|
|
|
);
|
|
|
|
|
|
|
|
FormNestedFoot.propTypes = {
|
|
|
|
label: PropTypes.string,
|
|
|
|
addItem: PropTypes.func,
|
|
|
|
};
|
|
|
|
|
|
|
|
registerComponent('FormNestedFoot', FormNestedFoot);
|