diff --git a/README.md b/README.md index 4ac5663..50c925e 100644 --- a/README.md +++ b/README.md @@ -52,9 +52,9 @@ React.renderComponent( | **statisticsOptionText** | string | "Statistics" | *optional*. Text for the *statistics* cookies checkbox | | **marketingOptionText** | string | "Marketing" | *optional*. Text for the *marketing* cookies checkbox | | **acceptButtonText** | string | "Accept" | *optional*. Text for the *accept* button | -| **declineButtonText** | string | "Decline" | *optional*. Text for the *decline* button | -| **managePreferencesButtonText** | string | "Decline" | *optional*. Text for the *manage preferences* button | -| **savePreferencesButtonText** | string | "Decline" | *optional*. Text for the save and close* button | +| **declineButtonText** | string | "Decline all" | *optional*. Text for the *decline* button | +| **managePreferencesButtonText** | string | "Manage my cookies" | *optional*. Text for the *manage preferences* button | +| **savePreferencesButtonText** | string | "Save and close" | *optional*. Text for the save and close* button | | **showDeclineButton** | bool | false | *optional*. Show or hide the *decline* button | | **dismissOnScroll** | bool | false | *optional*. Enable or disable the dismissing on scroll of the banner | | **showPreferencesOption** | bool | true | *optional*. Show or hide the *preferences* checkbox | diff --git a/src/components/CookieBannerContent.js b/src/components/CookieBannerContent.js index 174ee86..1d2b66b 100644 --- a/src/components/CookieBannerContent.js +++ b/src/components/CookieBannerContent.js @@ -21,6 +21,9 @@ class CookieBannerContent extends React.Component { savePreferencesButtonText = 'Save and close', onConfirm = () => {}, onAcceptAll = () => {}, + showDeclineButton = false, + declineButtonText = 'Decline all', + onDecline = () => {}, } = this.props; const { showPreferences } = this.state; @@ -62,6 +65,12 @@ class CookieBannerContent extends React.Component { + { + showDeclineButton && ( + + )}