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

Style   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Function

Rating   Name   Duplication   Size   Complexity  
A 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
}