Make flashing play btn on 15 secs remaining

This commit is contained in:
Matthew Stratford 2020-03-22 02:56:06 +00:00
parent 0efe10f8a3
commit 859bce7afd

View file

@ -150,7 +150,7 @@ function Player({ id }: { id: number }) {
<div className="mediaButtons">
<button
onClick={() => dispatch(MixerState.play(id))}
className={(playerState.state === "playing" ? ((playerState.timeRemaining < 15) ? "sp-state-playing sp-ending-soon" : "sp-state-playing") : "")}
className={(playerState.state === "playing" ? ((playerState.timeRemaining <= 15) ? "sp-state-playing sp-ending-soon" : "sp-state-playing") : "")}
>
<i className="fas fa-play"></i>
</button>