diff --git a/packages/vulcan-core/lib/modules/components/EditButton.jsx b/packages/vulcan-core/lib/modules/components/EditButton.jsx index 4ad5be21e..7f15bef7d 100644 --- a/packages/vulcan-core/lib/modules/components/EditButton.jsx +++ b/packages/vulcan-core/lib/modules/components/EditButton.jsx @@ -2,12 +2,12 @@ import { Components, registerComponent } from 'meteor/vulcan:lib'; import React from 'react'; import { FormattedMessage, intlShape } from 'meteor/vulcan:i18n'; -const EditButton = ({ style = 'primary', size, showId, modalProps, ...props }, { intl }) => ( +const EditButton = ({ style = 'primary', label, size, showId, modalProps, ...props }, { intl }) => ( - + {label || } } modalProps={modalProps} diff --git a/packages/vulcan-core/lib/modules/components/NewButton.jsx b/packages/vulcan-core/lib/modules/components/NewButton.jsx index a7a3c88d5..262eba4af 100644 --- a/packages/vulcan-core/lib/modules/components/NewButton.jsx +++ b/packages/vulcan-core/lib/modules/components/NewButton.jsx @@ -2,12 +2,12 @@ import { Components, registerComponent } from 'meteor/vulcan:lib'; import React from 'react'; import { FormattedMessage, intlShape } from 'meteor/vulcan:i18n'; -const NewButton = ({ collection, size, style = 'primary', ...props }, { intl }) => ( +const NewButton = ({ collection, size, label, style = 'primary', ...props }, { intl }) => ( - + {label || } } >