src/Application/View/Page.tsx   A
last analyzed

Complexity

Total Complexity 2
Complexity/F 2

Size

Lines of Code 21
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
eloc 13
mnd 1
bc 1
fnc 1
dl 0
loc 21
rs 10
bpm 1
cpm 2
noi 0
c 0
b 0
f 0
ccs 1
cts 1
cp 1

1 Function

Rating   Name   Duplication   Size   Complexity  
A Page.render 0 6 2
1
import React from 'react';
2
import Model from './Page/Model';
3
4
interface Properties {
5
  model: Model
6
}
7
8
interface State {
9
10
}
11
12
export default class Page extends React.Component<Properties, State> {
13
  render(): React.ReactElement {
14 2
    return <div className="mdc-drawer-app-content mdc-top-app-bar--fixed-adjust">
15
      <main className="main-content" id="main-content">
16
        {this.props.model.module != null ? <this.props.model.module /> : <div>Loading...</div>}
17
      </main>
18
    </div>;
19
  }
20
}
21