removed popout background corner color
This commit is contained in:
@@ -6,12 +6,14 @@ export default function CustomTimer({className='text-emerald-500'}) {
|
||||
|
||||
useEffect(()=>{
|
||||
const timer = setInterval(()=>{
|
||||
setTime(prev => prev - 1)
|
||||
if(time > 0 ){
|
||||
setTime(prev => prev - 1)
|
||||
}
|
||||
},1000)
|
||||
return ()=>{
|
||||
clearInterval(timer)
|
||||
}
|
||||
},[])
|
||||
},[time])
|
||||
|
||||
let minutes = time == 0 ? 0 : Math.floor(time/60)
|
||||
let seconds = time == 0 ? 0 :time - (minutes * 60)
|
||||
|
||||
Reference in New Issue
Block a user