mirror of
https://github.com/Mastermindzh/react-cookie-consent.git
synced 2025-08-01 07:04:34 +02:00
reverted PascalCase to camelCase, thanks again for the contribution @charlyx !
This commit is contained in:
2
build/index.d.ts
vendored
2
build/index.d.ts
vendored
@@ -23,7 +23,7 @@ export interface CookieConsentProps {
|
||||
acceptOnScrollPercentage?: number;
|
||||
extraCookieOptions?: object;
|
||||
disableButtonStyles ?: boolean;
|
||||
ButtonComponent?: Function | React.ReactElement;
|
||||
buttonComponent?: Function | React.ReactElement;
|
||||
}
|
||||
|
||||
export default class CookieConsent extends React.Component<CookieConsentProps, {}> {}
|
||||
|
@@ -681,7 +681,7 @@ var CookieConsent = function (_Component) {
|
||||
buttonClasses = _props3.buttonClasses,
|
||||
buttonId = _props3.buttonId,
|
||||
disableButtonStyles = _props3.disableButtonStyles,
|
||||
ButtonComponent = _props3.ButtonComponent;
|
||||
buttonComponent = _props3.buttonComponent;
|
||||
|
||||
|
||||
var myStyle = {};
|
||||
@@ -728,7 +728,7 @@ var CookieConsent = function (_Component) {
|
||||
this.props.children
|
||||
),
|
||||
_react2.default.createElement(
|
||||
ButtonComponent,
|
||||
"buttonComponent",
|
||||
{
|
||||
style: myButtonStyle,
|
||||
className: buttonClasses,
|
||||
@@ -770,7 +770,7 @@ CookieConsent.propTypes = {
|
||||
acceptOnScrollPercentage: _propTypes2.default.number,
|
||||
extraCookieOptions: _propTypes2.default.object,
|
||||
disableButtonStyles: _propTypes2.default.bool,
|
||||
ButtonComponent: _propTypes2.default.oneOfType([_propTypes2.default.func, _propTypes2.default.element])
|
||||
buttonComponent: _propTypes2.default.oneOfType([_propTypes2.default.func, _propTypes2.default.element])
|
||||
};
|
||||
|
||||
CookieConsent.defaultProps = {
|
||||
@@ -791,7 +791,7 @@ CookieConsent.defaultProps = {
|
||||
buttonId: "",
|
||||
extraCookieOptions: {},
|
||||
disableButtonStyles: false,
|
||||
ButtonComponent: function ButtonComponent(_ref) {
|
||||
buttonComponent: function buttonComponent(_ref) {
|
||||
var children = _ref.children,
|
||||
props = _objectWithoutProperties(_ref, ["children"]);
|
||||
|
||||
|
Reference in New Issue
Block a user