Socket
Socket
Sign inDemoInstall

@weahead/consent-manager

Package Overview
Dependencies
Maintainers
9
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@weahead/consent-manager - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

5

components/Buttons/Button/OpenModal/index.d.ts

@@ -1,3 +0,4 @@

import type { PropsWithChildren } from "react";
/// <reference types="react" />
import type { OpenModalButtonProps } from "../../../../types/Button";
import "./style.css";
export default function OpenModalButton({ children }: PropsWithChildren<{}>): JSX.Element;
export default function OpenModalButton({ children, className, }: OpenModalButtonProps): JSX.Element;

4

components/Buttons/Button/OpenModal/index.js

@@ -10,6 +10,6 @@ "use strict";

function OpenModalButton(_a) {
var children = _a.children;
var children = _a.children, _b = _a.className, className = _b === void 0 ? 'open-consent-button' : _b;
var actions = (0, useConstentManagerContext_1["default"])().actions;
return (react_1["default"].createElement("button", { className: "open-consent-button", onClick: actions.openModal, type: "button" }, children));
return (react_1["default"].createElement("button", { className: className, onClick: actions.openModal, type: "button" }, children));
}
exports["default"] = OpenModalButton;
{
"name": "@weahead/consent-manager",
"version": "1.0.4",
"version": "1.0.5",
"author": "Weahead AB <alla@weahead.se>",

@@ -63,2 +63,2 @@ "main": "index.js",

}
}
}

@@ -22,1 +22,4 @@ import type { PropsWithChildren } from "react";

};
export declare type OpenModalButtonProps = PropsWithChildren<{
className?: string;
}>;

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc