webdevcody / code-racer

https://code-racer-eight.vercel.app
MIT License
694 stars 514 forks source link

Hide play/pause control when replay is finished #707

Closed kovacevjosip closed 1 year ago

kovacevjosip commented 1 year ago

title: Hide play/pause control when replay is finished

What type of PR is this? (select all that apply)

Description

Only minor change, when code replay is finished, play/pause control should be removed since it does not do anything. When you click reset control, then play/pause control is available again. Also useEffect that handles next timestamp is little bit refactored. It should be easier to read.

Related Tickets & Documents

QA Instructions, Screenshots, Recordings

image

UI accessibility concerns?

Added/updated tests?

[optional] Are there any post deployment tasks we need to perform?

[optional] What gif best describes this PR or how it makes you feel?