From ca65614cafd151d086b45a2873c7ce7bfe23f8bc Mon Sep 17 00:00:00 2001 From: Haris Spahija Date: Thu, 21 Nov 2019 12:55:00 +0100 Subject: [PATCH] feat: added text overrides on GuestForm Signed-off-by: Haris Spahija --- .../src/components/GuestForm/v1/GuestForm.js | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/package/src/components/GuestForm/v1/GuestForm.js b/package/src/components/GuestForm/v1/GuestForm.js index f0ad82a28..f71db3f67 100644 --- a/package/src/components/GuestForm/v1/GuestForm.js +++ b/package/src/components/GuestForm/v1/GuestForm.js @@ -61,6 +61,14 @@ class GuestForm extends Component { */ TextInput: CustomPropTypes.component.isRequired }).isRequired, + /** + * The text for the "Email address" label text. + */ + emailLabelText: PropTypes.string, + /** + * The text for the "Email address" placeholder text. + */ + emailPlaceholderText: PropTypes.string, /** * Errors array */ @@ -112,7 +120,9 @@ class GuestForm extends Component { validator: getRequiredValidator("email"), value: { email: "" - } + }, + emailLabelText: "Email address", + emailPlaceholderText: "Email address" }; _form = null; @@ -132,6 +142,8 @@ class GuestForm extends Component { buttonText, className, components: { Button, ErrorsBlock, Field, TextInput }, + emailLabelText, + emailPlaceholderText, errors, helpText, isSaving, @@ -153,8 +165,8 @@ class GuestForm extends Component { validator={validator} value={value} > - - +