Cleanup
This commit is contained in:
parent
f6bc13bfb9
commit
dab55e029f
|
@ -229,14 +229,16 @@ class Question extends Component {
|
||||||
{this.getPreviousResult()}
|
{this.getPreviousResult()}
|
||||||
<div className="big-character">{this.getShowableQuestion()}</div>
|
<div className="big-character">{this.getShowableQuestion()}</div>
|
||||||
<div className="answer-container">
|
<div className="answer-container">
|
||||||
{this.props.stage<3?this.state.answerOptions.map(function(answer, idx) {
|
{
|
||||||
|
this.props.stage<3 ?
|
||||||
|
this.state.answerOptions.map((answer, idx) => {
|
||||||
return <AnswerButton answer={answer}
|
return <AnswerButton answer={answer}
|
||||||
className={btnClass}
|
className={btnClass}
|
||||||
key={idx}
|
key={idx}
|
||||||
answertype={this.getAnswerType()}
|
answertype={this.getAnswerType()}
|
||||||
handleAnswer={this.handleAnswer} />
|
handleAnswer={this.handleAnswer} />
|
||||||
}, this):
|
})
|
||||||
<div className="answer-form-container">
|
: <div className="answer-form-container">
|
||||||
<form onSubmit={this.handleSubmit}>
|
<form onSubmit={this.handleSubmit}>
|
||||||
<input autoFocus className="answer-input" type="text" value={this.state.currentAnswer} onChange={this.handleAnswerChange} />
|
<input autoFocus className="answer-input" type="text" value={this.state.currentAnswer} onChange={this.handleAnswerChange} />
|
||||||
</form>
|
</form>
|
||||||
|
|
Loading…
Reference in a new issue