mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-13 03:13:47 +00:00
style: layout changes
This commit is contained in:
@@ -41,7 +41,7 @@ export default function PlaybackControl() {
|
||||
|
||||
// Handle timer
|
||||
socket.on('timer', (data) => {
|
||||
setTimer({ ...data });
|
||||
setTimer(data);
|
||||
});
|
||||
|
||||
// Handle selected event
|
||||
@@ -103,7 +103,6 @@ export default function PlaybackControl() {
|
||||
_focus: { boxShadow: 'none' },
|
||||
};
|
||||
|
||||
console.log('debug timer', timer.running);
|
||||
return (
|
||||
<div className={style.mainContainer}>
|
||||
<div className={style.timeContainer}>
|
||||
@@ -126,30 +125,30 @@ export default function PlaybackControl() {
|
||||
<span className={style.time}>{finish}</span>
|
||||
</div>
|
||||
<div className={style.btn}>
|
||||
<Button
|
||||
{...incrementProps}
|
||||
onClick={() => socket.emit('increment-timer', 1)}
|
||||
>
|
||||
+1
|
||||
</Button>
|
||||
<Button
|
||||
{...incrementProps}
|
||||
onClick={() => socket.emit('increment-timer', 5)}
|
||||
>
|
||||
+5
|
||||
</Button>
|
||||
<Button
|
||||
{...incrementProps}
|
||||
onClick={() => socket.emit('increment-timer', -1)}
|
||||
>
|
||||
-1
|
||||
</Button>
|
||||
<Button
|
||||
{...incrementProps}
|
||||
onClick={() => socket.emit('increment-timer', 1)}
|
||||
>
|
||||
+1
|
||||
</Button>
|
||||
<Button
|
||||
{...incrementProps}
|
||||
onClick={() => socket.emit('increment-timer', -5)}
|
||||
>
|
||||
-5
|
||||
</Button>
|
||||
<Button
|
||||
{...incrementProps}
|
||||
onClick={() => socket.emit('increment-timer', 5)}
|
||||
>
|
||||
+5
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
<PlaybackButtons
|
||||
|
||||
Reference in New Issue
Block a user