Total Complexity | 1 |
Complexity/F | 1 |
Lines of Code | 27 |
Function Count | 1 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
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 |