Passed
Push — develop ( a05353...e2fd1b )
by Endre
04:09
created

src/Theme/Style.tsx   A

Complexity

Total Complexity 2
Complexity/F 2

Size

Lines of Code 16
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 10
dl 0
loc 16
ccs 2
cts 2
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 Style.render 0 3 2
1
import React from 'react';
2
3
interface IProperties {
4
  source: string,
5
  external?: boolean
6
}
7
8
interface IState {
9
}
10
11
export default class Style extends React.Component<IProperties, IState> {
12
  render() {
13 7
    const source: string = this.props.external ? this.props.source : './Style/' + this.props.source + '.css';
14 7
    return <link rel="stylesheet" href={source} />;
15
  }
16
}