removed popout background corner color

This commit is contained in:
victorAnumudu
2024-04-09 15:15:00 +01:00
parent a1d96488bf
commit 2a3edcf3be
5 changed files with 11 additions and 9 deletions
+4 -2
View File
@@ -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)