Skip to content

Commit

Permalink
refactor: adss close all popups to button to countdown timer
Browse files Browse the repository at this point in the history
Relates #142
  • Loading branch information
nichgalzin committed Nov 26, 2024
1 parent 8234bf8 commit e0d1ed2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/components/CountDownTimer/CountDownTimer.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
margin: 0;
}

.timer__pause-switch {
align-self: flex-end;
margin-top: 15px;
.timer__controls {
justify-content: space-between;
align-items: center;
margin: 10px 10px;
}
6 changes: 5 additions & 1 deletion src/components/CountDownTimer/CountDownTimer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import useStore from "~store/store"
import "./CountDownTimer.css"

import PauseSwitch from "~components/PauseSwitch/PauseSwitch"
import CloseAllPopupsButton from "~components/popup-components/CloseAllPopupsButton/CloseAllPopupButton"

export default function CountDownTimer() {
const [tHours, setTHours] = useState(0)
Expand Down Expand Up @@ -62,7 +63,10 @@ export default function CountDownTimer() {
</h2>
)}
</div>
<PauseSwitch showlabel={false} className="timer__pause-switch" />
<div className="flex timer__controls">
<PauseSwitch showlabel={false} />
<CloseAllPopupsButton />
</div>
</div>
)
}

0 comments on commit e0d1ed2

Please sign in to comment.