src/js/components/ReportQuestion.js   A
last analyzed

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 35
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 27
mnd 0
bc 0
fnc 1
dl 0
loc 35
rs 10
bpm 0
cpm 1
noi 0
c 0
b 0
f 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A ReportQuestion.render 0 25 1
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;