hide timer when instance not in progress
This commit is contained in:
parent
901f04ef40
commit
21170285c2
@ -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} > </div>
|
: (
|
||||||
</div>
|
<div class="timer-container">
|
||||||
);
|
<div class="timer" style={timerStyles} > </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>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user