Passed
Push — develop ( 9011bf...5a7fee )
by Endre
03:38
created

Page   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 8
ccs 1
cts 1
cp 1
rs 10
c 0
b 0
f 0
wmc 2

1 Function

Rating   Name   Duplication   Size   Complexity  
A render 0 6 2
1
import React from 'react';
2
import Model from './Page/Model';
3
4
interface IProperties {
5
  model: Model
6
}
7
8
interface IState {
9
10
}
11
12
export default class Page extends React.Component<IProperties, IState> {
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
}