Change order of stats when test completed

This commit is contained in:
2021-10-03 19:28:37 +01:00
parent eb01cbe305
commit 60e09a3f86

View File

@@ -585,6 +585,10 @@ export default withRouter(class Progress extends React.Component {
<p>You got</p> <p>You got</p>
<h1>{`${(this.state.correct / this.state.totalQuestions * 100).toFixed(2)}%`}</h1> <h1>{`${(this.state.correct / this.state.totalQuestions * 100).toFixed(2)}%`}</h1>
</div> </div>
<div className="stat-row stat-row--inline">
<h1>{`${this.state.correct} of ${this.state.totalQuestions}`}</h1>
<p>marks</p>
</div>
{ {
this.state.averagePercentage !== null && this.state.averagePercentage !== null &&
<div className="stat-row stat-row--inline"> <div className="stat-row stat-row--inline">
@@ -592,10 +596,6 @@ export default withRouter(class Progress extends React.Component {
<h1>{`${this.state.averagePercentage}%`}</h1> <h1>{`${this.state.averagePercentage}%`}</h1>
</div> </div>
} }
<div className="stat-row stat-row--inline">
<h1>{`${this.state.correct} of ${this.state.totalQuestions}`}</h1>
<p>marks</p>
</div>
<div className="stat-row stat-row--inline"> <div className="stat-row stat-row--inline">
<p>You took</p> <p>You took</p>
<h1>{this.msToTime(this.state.duration)}</h1> <h1>{this.msToTime(this.state.duration)}</h1>