Completed
Push — master ( cd8e9c...38d450 )
by Seonkuk
12s queued 10s
created

src/component/StatusView.jsx   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
eloc 19
dl 0
loc 27
rs 10
c 0
b 0
f 0
wmc 1
mnd 0
bc 0
fnc 1
bpm 0
cpm 1
noi 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A StatusView.render 0 6 1
1
import React from 'react';
2
import PropTypes from 'prop-types';
3
import StatusTabContainer from './tab/StatusTabContainer';
4
5
export default class StatusView extends React.Component {
6
  render() {
7
    return (
8
      <StatusTabContainer
9
        id="statusTabs"
10
        statusTypes={this.props.statusTypes}
11
        deviceTypes={this.props.deviceTypes}
12
      />
13
    );
14
  }
15
}
16
17
StatusView.propTypes = {
18
  statusTypes: PropTypes.arrayOf(PropTypes.shape({
19
    label: PropTypes.string,
20
    value: PropTypes.string,
21
  })).isRequired,
22
  deviceTypes: PropTypes.arrayOf(PropTypes.shape({
23
    label: PropTypes.string,
24
    value: PropTypes.string,
25
  })).isRequired,
26
};
27