src/Theme/Style.tsx   A
last analyzed

Complexity

Total Complexity 2
Complexity/F 2

Size

Lines of Code 17
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Test Coverage

Coverage 100%

Importance

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

1 Function

Rating   Name   Duplication   Size   Complexity  
A Style.render 0 3 2
1
import React from 'react';
2
3
interface Properties {
4
  source: string,
5
  external?: boolean
6
}
7
8
interface State {
9
}
10
11
export default class Style extends React.Component<Properties, State> {
12
  render() {
13 2
    const source: string = this.props.external ? this.props.source : './Style/' + this.props.source + '.css';
14 2
    return <link rel="stylesheet" href={source} />;
15
  }
16
}
17