alert-interval-popup
Advanced tools
Comparing version 1.0.0 to 1.0.1
import React, { useState, useEffect } from 'react'; | ||
import styles from './Popup.module.scss'; | ||
import styles from './AlertIntervalPopup.module.scss'; | ||
@@ -4,0 +4,0 @@ export const AlertIntervalPopup = ({ children, intervaltime=10000, ...rest }) => { |
{ | ||
"name": "alert-interval-popup", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "An alert box with pops up after a certain interval of time", | ||
"main": "Popup.js", | ||
"main": "AlertIntervalPopup.js", | ||
"scripts": { | ||
@@ -14,7 +14,3 @@ "test": "echo \"Error: no test specified\" && exit 1" | ||
"author": "shubham prakash", | ||
"license": "ISC", | ||
"peerDependencies": { | ||
"react": "^17.0.2", | ||
"react-dom": "^17.0.2" | ||
} | ||
"license": "ISC" | ||
} |
@@ -1,2 +0,2 @@ | ||
## What is this? | ||
## Introduction | ||
An alert box with pops up after a certain interval of time | ||
@@ -11,8 +11,8 @@ | ||
<Popup intervaltime=1000>{children}</Popup> | ||
<AlertIntervalPopup intervaltime=1000>This is an alert interval popup</AlertIntervalPopup> | ||
``` | ||
## Props | ||
This takes two props intervaltime and children. | ||
This takes one prop intervaltime. | ||
By default `intervaltime` is set to 10000. |
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
0
2571