Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removes useless cancelButtonText prop #31

Merged
merged 1 commit into from
Dec 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions Hcaptcha.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -52,7 +51,6 @@ const Hcaptcha = ({
style,
url,
languageCode,
cancelButtonText = 'Cancel',
showLoading,
loadingIndicatorColor,
backgroundColor,
Expand Down
3 changes: 0 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ class ConfirmHcaptcha extends PureComponent {
baseUrl,
languageCode,
onMessage,
cancelButtonText,
showLoading,
backgroundColor,
loadingIndicatorColor,
Expand All @@ -55,7 +54,6 @@ class ConfirmHcaptcha extends PureComponent {
siteKey={siteKey}
onMessage={onMessage}
languageCode={languageCode}
cancelButtonText={cancelButtonText}
showLoading={showLoading}
loadingIndicatorColor={loadingIndicatorColor}
backgroundColor={backgroundColor}
Expand Down Expand Up @@ -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,
Expand Down