Skip to content
This repository has been archived by the owner on Jun 26, 2021. It is now read-only.

Commit

Permalink
Merge pull request #16 from Alxmerino/multiple-timers
Browse files Browse the repository at this point in the history
Multiple timers
  • Loading branch information
Rene Merino authored Mar 18, 2017
2 parents 719af0b + 6e912a5 commit b3c90c6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/js/components/TimerItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const TimerItem = ({onClose, onStart, onStop, onTitleToggle, started, title, dis
<button
type="button"
onClick={clickAction}
className={`timer-${timerStatus} btn btn-info btn-xs`}
className={`timer-${timerStatus} btn btn-info btn-sm`}
>
<span className={`glyphicon glyphicon-${timerStatus}`} aria-hidden="true"></span>
</button>
Expand Down
2 changes: 1 addition & 1 deletion src/js/reducers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ export default function reducer(state={
let newState = _.assign({}, state);

newState.timers = _.map(newState.timers, (timer) => {
timer.started = false;

if (timer.id === id) {
timer.started = false;
timer.endTime = moment.now();
// Save duration in case we want to start timer again
timer.durationCycle = timer.duration;
Expand Down
2 changes: 2 additions & 0 deletions src/scss/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@

&-title {
flex-grow: 1;
margin-bottom: 0;
margin-right: 20px;
}
}

Expand Down

0 comments on commit b3c90c6

Please sign in to comment.