From 73eeabcca2f936bab41a7bd0bacdce2d0478d32e Mon Sep 17 00:00:00 2001 From: SachaG <358832+SachaG@users.noreply.github.com> Date: Sat, 2 Mar 2019 17:48:14 +0900 Subject: [PATCH] Add label prop to edit/new buttons --- packages/vulcan-core/lib/modules/components/EditButton.jsx | 6 +++--- packages/vulcan-core/lib/modules/components/NewButton.jsx | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) 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 || } } >