refactor: flatten state mutations (#750)

This commit is contained in:
Carlos Valente
2024-01-31 14:02:27 +01:00
committed by GitHub
parent ec8952be56
commit 7eb9ee8d03
11 changed files with 720 additions and 637 deletions
@@ -34,7 +34,7 @@ export default function PlaybackButtons(props: PlaybackButtonsProps) {
const noEvents = numEvents === 0;
const disableGo = isRolling || noEvents || (isLast && !isArmed);
const disablePrev = noEvents || isFirst;
const disablePrev = isRolling || noEvents || isFirst;
const playbackCan = validatePlayback(playback);
const disableStart = !playbackCan.start;