react-notify-sdk 1.0.52 → 1.0.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -115,7 +115,7 @@ const FeatureMessage = ({ message, onDismiss }) => {
115
115
  :
116
116
  _jsx("button", {
117
117
  //data-dismiss-button
118
- type: 'button', style: {
118
+ type: 'button', onClick: message?.click_action ? handleClick : undefined, style: {
119
119
  width: "20%", // w-1/5
120
120
  height: "1rem", // h-4 (16px)
121
121
  marginTop: "auto", // my-auto
@@ -127,6 +127,6 @@ const FeatureMessage = ({ message, onDismiss }) => {
127
127
  fontSize: "1rem", // text-base
128
128
  color: `${message?.textColor}`,
129
129
  cursor: "pointer"
130
- }, onClick: message?.click_action ? handleClick : undefined, onMouseEnter: (e) => (e.currentTarget.style.color = `${message?.borderColor}`), onMouseLeave: (e) => (e.currentTarget.style.color = `${message?.textColor}`), children: `${filterButton(message)}` }) })] }));
130
+ }, onMouseEnter: (e) => (e.currentTarget.style.color = `${message?.borderColor}`), onMouseLeave: (e) => (e.currentTarget.style.color = `${message?.textColor}`), children: `${filterButton(message)}` }) })] }));
131
131
  };
132
132
  export default FeatureMessage;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-notify-sdk",
3
- "version": "1.0.52",
3
+ "version": "1.0.53",
4
4
  "description": "SDK for displaying real-time route-specific messages in React apps",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",