mirror of
https://github.com/FranP-code/Pomodoro-Timer-with-Clockify-integration.git
synced 2025-10-12 23:52:30 +00:00
Added styles to the selects and loading state
This commit is contained in:
@@ -2,8 +2,8 @@ import React, {useState} from 'react'
|
||||
|
||||
const MainPomodoroTimer = (props) => {
|
||||
|
||||
const [minutes, setMinutes] = useState('25')
|
||||
const [seconds, setSeconds] = useState('0')
|
||||
const [minutes, setMinutes] = useState(25)
|
||||
const [seconds, setSeconds] = useState(0)
|
||||
|
||||
const [breakTime, setBreakTime] = useState(undefined)
|
||||
const [weAreInBreakTime, setWeAreInBreakTime] = useState(false)
|
||||
@@ -144,12 +144,12 @@ const MainPomodoroTimer = (props) => {
|
||||
if (seconds === 0) {
|
||||
|
||||
setSeconds(59)
|
||||
setMinutes((minutes - 1))
|
||||
setMinutes(minutes - 1)
|
||||
|
||||
}
|
||||
|
||||
else {
|
||||
setSeconds((seconds - 1))
|
||||
setSeconds(seconds - 1)
|
||||
}
|
||||
|
||||
}, (1000 / velocity))
|
||||
|
||||
Reference in New Issue
Block a user