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:
@@ -11,7 +11,6 @@ const MainPomodoro = (props) => {
|
||||
|
||||
const [style, setStyle] = useState('Regular')
|
||||
const [displayHidden, setDisplayHidden] = useState(true)
|
||||
const [timerOn, setTimerOn] = useState(false)
|
||||
|
||||
const [pomodoros, setPomodoros] = useState(0)
|
||||
const [rests, setRests] = useState(0)
|
||||
@@ -31,8 +30,8 @@ const MainPomodoro = (props) => {
|
||||
|
||||
style={style}
|
||||
|
||||
timerOn={timerOn}
|
||||
setTimerOn={setTimerOn}
|
||||
timerOn={props.timerOn}
|
||||
setTimerOn={props.setTimerOn}
|
||||
|
||||
pomodoros={pomodoros}
|
||||
setPomodoros={setPomodoros}
|
||||
@@ -54,8 +53,8 @@ const MainPomodoro = (props) => {
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
<button class="start-pomodoro" onClick={() => setTimerOn(!timerOn)}>{
|
||||
timerOn ? 'STOP' : 'START'
|
||||
<button class="start-pomodoro" onClick={() => props.setTimerOn(!props.timerOn)}>{
|
||||
props.timerOn ? 'STOP' : 'START'
|
||||
|
||||
}</button>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user