Total Complexity | 1 |
Complexity/F | 1 |
Lines of Code | 35 |
Function Count | 1 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import React from 'react'; |
||
2 | |||
3 | class ReportQuestion extends React.Component { |
||
4 | render() { |
||
5 | return ( |
||
6 | <div className="question_input_container"> |
||
7 | <label > |
||
8 | Question |
||
9 | <textarea |
||
10 | id={this.props.index} |
||
11 | name={"question"} |
||
12 | type="textarea" |
||
13 | onChange={this.props.triggerQuestion} |
||
14 | defaultValue={this.props.question} |
||
15 | |||
16 | /> |
||
17 | </label> |
||
18 | <label> |
||
19 | Answer |
||
20 | <textarea |
||
21 | id={this.props.index} |
||
22 | name={"answer"} |
||
23 | type="textarea" |
||
24 | onChange={this.props.triggerAnswer} |
||
25 | defaultValue={this.props.answer} |
||
26 | /> |
||
27 | </label> |
||
28 | </div> |
||
29 | |||
30 | ) |
||
31 | } |
||
32 | } |
||
33 | |||
34 | |||
35 | export default ReportQuestion; |