From 7cd7c635ca81fc457363ad076f8a7156ab5c272d Mon Sep 17 00:00:00 2001 From: Alessandro Diez Date: Wed, 21 Dec 2022 15:33:02 +0100 Subject: [PATCH] removes useless cancelButtonText prop --- Hcaptcha.js | 2 -- index.js | 3 --- 2 files changed, 5 deletions(-) diff --git a/Hcaptcha.js b/Hcaptcha.js index 33bda70..c4d662b 100644 --- a/Hcaptcha.js +++ b/Hcaptcha.js @@ -39,7 +39,6 @@ const buildHcaptchaApiUrl = (siteKey, languageCode, theme) => { * @param {*} style: custom style * @param {*} url: base url * @param {*} languageCode: can be found at https://docs.hcaptcha.com/languages - * @param {*} cancelButtonText: title of cancel button * @param {*} showLoading: loading indicator for webview till hCaptcha web content loads * @param {*} loadingIndicatorColor: color for the ActivityIndicator * @param {*} backgroundColor: backgroundColor which can be injected into HTML to alter css backdrop colour @@ -52,7 +51,6 @@ const Hcaptcha = ({ style, url, languageCode, - cancelButtonText = 'Cancel', showLoading, loadingIndicatorColor, backgroundColor, diff --git a/index.js b/index.js index 599233c..95a45bb 100644 --- a/index.js +++ b/index.js @@ -28,7 +28,6 @@ class ConfirmHcaptcha extends PureComponent { baseUrl, languageCode, onMessage, - cancelButtonText, showLoading, backgroundColor, loadingIndicatorColor, @@ -55,7 +54,6 @@ class ConfirmHcaptcha extends PureComponent { siteKey={siteKey} onMessage={onMessage} languageCode={languageCode} - cancelButtonText={cancelButtonText} showLoading={showLoading} loadingIndicatorColor={loadingIndicatorColor} backgroundColor={backgroundColor} @@ -90,7 +88,6 @@ ConfirmHcaptcha.propTypes = { baseUrl: PropTypes.string, onMessage: PropTypes.func, languageCode: PropTypes.string, - cancelButtonText: PropTypes.string, backgroundColor: PropTypes.string, showLoading: PropTypes.bool, loadingIndicatorColor: PropTypes.string,