hide timer when instance not in progress

This commit is contained in:
ntr 2019-09-15 16:00:24 +10:00
parent 901f04ef40
commit 21170285c2

View File

@ -76,11 +76,13 @@ function Controls(args) {
background: displayColour, background: displayColour,
}; };
const timer = ( const timer = instance.phase !== 'InProgress'
<div class="timer-container"> ? null
<div class="timer" style={timerStyles} >&nbsp;</div> : (
</div> <div class="timer-container">
); <div class="timer" style={timerStyles} >&nbsp;</div>
</div>
);
const ready = instance.phase !== 'Finished' const ready = instance.phase !== 'Finished'
? <button class="ready" onClick={() => sendReady()}>Ready</button> ? <button class="ready" onClick={() => sendReady()}>Ready</button>