Change layout of stats on test completion
This commit is contained in:
@@ -503,6 +503,7 @@ export default withRouter(class Progress extends React.Component {
|
||||
<main>
|
||||
{/* DONE */}
|
||||
<h1>{this.state.setTitle}</h1>
|
||||
<div className="progress-stat-row-container">
|
||||
<div className="stat-row stat-row--inline">
|
||||
<p>You got</p>
|
||||
<h1>{`${(this.state.correct / this.state.totalQuestions * 100).toFixed(2)}%`}</h1>
|
||||
@@ -519,6 +520,7 @@ export default withRouter(class Progress extends React.Component {
|
||||
<p>Attempt #</p>
|
||||
<h1>{this.state.attemptNumber}</h1>
|
||||
</div>
|
||||
</div>
|
||||
{
|
||||
this.state.incorrectAnswers && Object.keys(this.state.incorrectAnswers).length > 0 &&
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user