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

src/Application/View/Page.tsx   A

Complexity

Total Complexity 2
Complexity/F 2

Size

Lines of Code 20
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Test Coverage

Coverage 100%

Importance

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

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 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
}