Compare commits
8 Commits
99f8e39d0c
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 689ff3cddb | |||
| 3b28919de1 | |||
| 17a2d11f6a | |||
| 985ea41d64 | |||
| 065bdef4e7 | |||
| 76be5ed386 | |||
| 77b1866157 | |||
| 3260d16932 |
14
.drone.yml
Normal file
14
.drone.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: ci
|
||||
|
||||
steps:
|
||||
- name: npm
|
||||
image: plugins/npm
|
||||
settings:
|
||||
username:
|
||||
from_secret: NPM_USERNAME
|
||||
password:
|
||||
from_secret: NPM_PASSWORD
|
||||
email:
|
||||
from_secret: NPM_EMAIL
|
||||
@@ -1,5 +1,7 @@
|
||||
# React Countdown Hook
|
||||
|
||||
[](https://dci.osa.cubetiqs.com/CUBETIQ/react-use-countdown)
|
||||
|
||||
### Installation
|
||||
```shell script
|
||||
# NPM
|
||||
|
||||
1
example/.gitignore
vendored
1
example/.gitignore
vendored
@@ -10,6 +10,7 @@
|
||||
|
||||
# production
|
||||
/build
|
||||
/dist
|
||||
|
||||
# misc
|
||||
.DS_Store
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@cubetiq/react-use-countdown",
|
||||
"version": "1.10.6",
|
||||
"version": "1.11.1",
|
||||
"description": "React Countdown with trigger",
|
||||
"main": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
|
||||
@@ -30,7 +30,7 @@ function useCountdown(options?: useCountdownOptions): CountdownHookResult {
|
||||
const start = (countAsM: number) => {
|
||||
setTimeleft(countAsM);
|
||||
};
|
||||
let varTimeout: number | null = null;
|
||||
let varTimeout: Timeout | null = null;
|
||||
|
||||
React.useEffect(() => {
|
||||
return () => clearTimeout(varTimeout!);
|
||||
|
||||
Reference in New Issue
Block a user