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

StatusView   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 8
rs 10
c 0
b 0
f 0
wmc 1

1 Function

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