File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -99,6 +99,7 @@ export default class RevisionPage extends React.Component {
99
99
stationName = { this . state . stationName }
100
100
submitCase = { this . submitCase }
101
101
tickDisplayed = { this . state . tickDisplayed }
102
+ timer
102
103
time = { this . state . time }
103
104
/>
104
105
{ this . state . resultsDisplayed ? resultsContainer : revisionContainer }
Original file line number Diff line number Diff line change @@ -15,7 +15,9 @@ export default class TopBar extends React.Component {
15
15
< div id = "topbar-container" >
16
16
< BackButton link = { this . props . backLink } />
17
17
< h3 id = "topbar-title" > { this . props . stationName } </ h3 >
18
- < h3 id = "topbar-timer" > { timerFormat ( this . props . time ) } </ h3 >
18
+ { this . props . timer && (
19
+ < h3 id = "topbar-timer" > { timerFormat ( this . props . time ) } </ h3 >
20
+ ) }
19
21
{ this . props . tickDisplayed && (
20
22
< CompleteButton
21
23
exam = { this . props . exam }
@@ -31,8 +33,10 @@ export default class TopBar extends React.Component {
31
33
32
34
TopBar . propTypes = {
33
35
backLink : PropTypes . string ,
36
+ exam : PropTypes . string ,
34
37
submitCase : PropTypes . func ,
35
38
stationName : PropTypes . string ,
36
39
tickDisplayed : PropTypes . bool ,
37
- time : PropTypes . number
40
+ time : PropTypes . number ,
41
+ timer : PropTypes . bool
38
42
} ;
You can’t perform that action at this time.
0 commit comments