Completed
Pull Request — master (#129)
by
unknown
05:00
created

client/utils/style/global.js   A

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 27
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 19
mnd 0
bc 0
fnc 1
dl 0
loc 27
bpm 0
cpm 1
noi 0
c 0
b 0
f 0
rs 10

1 Function

Rating   Name   Duplication   Size   Complexity  
A Component.render 0 4 1
1
import React from 'react';
2
import PropTypes from 'prop-types';
3
import styled from 'styled-components';
4
5
export class Component extends React.PureComponent {
6
  static propTypes = {
7
    className: PropTypes.string,
8
    children: PropTypes.oneOfType([
9
      PropTypes.arrayOf(PropTypes.node),
10
      PropTypes.node,
11
    ]),
12
  };
13
14
  static defaultProps = {
15
    children: null,
16
  };
17
18
  render() {
19
    const { className, children } = this.props;
20
    return <div className={className}>{children}</div>;
21
  }
22
}
23
24
export default styled(Component)`
25
  font-family: 'Helvetica', sans-serif;
26
`;
27