Skip to content

Commit

Permalink
add missing props for texts
Browse files Browse the repository at this point in the history
  • Loading branch information
Alessandro Sarzina committed Feb 23, 2021
1 parent 4ce11ca commit c865ae5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ React.renderComponent(
| **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 |
| **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 |
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@palmabit/react-cookie-law",
"version": "0.6.0",
"version": "0.6.1",
"description": "React Cookie banner GDPR compliance",
"author": "Alessandro Sarzina <a.sarzina@palmabit.com>",
"license": "MIT",
Expand Down
6 changes: 6 additions & 0 deletions src/components/CookieBanner.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@ class CookieBanner extends React.Component {
showDeclineButton,
acceptButtonText,
declineButtonText,
managePreferencesButtonText,
savePreferencesButtonText,
showPreferencesOption,
showStatisticsOption,
showMarketingOption,
Expand All @@ -219,6 +221,8 @@ class CookieBanner extends React.Component {
showDeclineButton,
acceptButtonText,
declineButtonText,
managePreferencesButtonText,
savePreferencesButtonText,
showPreferencesOption,
showStatisticsOption,
showMarketingOption,
Expand Down Expand Up @@ -250,6 +254,8 @@ CookieBanner.protoTypes = {
marketingOptionText: PropTypes.string,
acceptButtonText: PropTypes.string,
declineButtonText: PropTypes.string,
managePreferencesButtonText: PropTypes.string,
savePreferencesButtonText: PropTypes.string,
showDeclineButton: PropTypes.bool,
dismissOnScroll: PropTypes.bool,
showPreferencesOption: PropTypes.bool,
Expand Down

0 comments on commit c865ae5

Please sign in to comment.