Skip to content
Snippets Groups Projects

Add timer and slide counter

Merged Björn Modée requested to merge 176-add-timer into dev
2 files
+ 36
11
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -12,9 +12,10 @@ type TimerProps = {
}
const Timer = ({ activeSlide, competitionId }: TimerProps) => {
const maxTime = 1000
const maxTime = 1000 // ms
const dispatch = useAppDispatch()
const updateTimer = async (event: React.ChangeEvent<HTMLTextAreaElement | HTMLInputElement>) => {
/** If timer value is above the max value, set the timer value to max value to not overflow the server */
if (+event.target.value > maxTime) {
setTimer(maxTime)
await axios
Loading