Total Complexity | 2 |
Complexity/F | 2 |
Lines of Code | 16 |
Function Count | 1 |
Duplicated Lines | 0 |
Ratio | 0 % |
Coverage | 100% |
Changes | 0 |
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 | } |