Comparing version 1.2.12 to 1.3.0
@@ -65,3 +65,3 @@ 'use strict'; | ||
progressBar = progressBar === 'true' || progressBar === 'false' ? progressBar : 'true'; | ||
theme = theme === 'dark' ? 'dark' : 'light'; | ||
theme = 'dark'; | ||
type = type in themes[theme] ? type : 'default'; | ||
@@ -106,3 +106,3 @@ React.useEffect(() => { | ||
setPopzType(type.toLowerCase()); | ||
setPopzMessage(message.toLowerCase()); | ||
setPopzMessage(message); | ||
setPopzProgressBar(progressBar.toLowerCase()); | ||
@@ -109,0 +109,0 @@ setTimeout(() => { |
{ | ||
"name": "popupz", | ||
"version": "1.2.12", | ||
"version": "1.3.0", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "A simple and customizable popup notification library for React and Next.js applications.", |
@@ -47,3 +47,3 @@ import React, { useState, useEffect } from 'react'; | ||
progressBar= progressBar==='true'|| progressBar==='false' ? progressBar : 'true'; | ||
theme= (theme === 'dark')? 'dark' : 'light'; | ||
theme= 'dark'; | ||
type= (type in themes[theme]) ? type : 'default'; | ||
@@ -50,0 +50,0 @@ |
@@ -15,3 +15,3 @@ import React, { useState, createContext, useContext } from 'react'; | ||
setPopzType(type.toLowerCase()); | ||
setPopzMessage(message.toLowerCase()); | ||
setPopzMessage(message); | ||
setPopzProgressBar(progressBar.toLowerCase()); | ||
@@ -18,0 +18,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24456